mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Auto merge of #8248 - Ms2ger:finite-zero, r=jdm
Remove the Zeroable definition for Finite<T>. I have no idea why it was added, and it appears to be unused. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8248) <!-- Reviewable:end -->
This commit is contained in:
commit
851e7098c9
1 changed files with 0 additions and 3 deletions
|
@ -4,7 +4,6 @@
|
|||
|
||||
//! The `Finite<T>` struct.
|
||||
|
||||
use core::nonzero::Zeroable;
|
||||
use num::Float;
|
||||
use std::ops::Deref;
|
||||
|
||||
|
@ -12,8 +11,6 @@ use std::ops::Deref;
|
|||
#[derive(JSTraceable, Clone, Copy, Eq, PartialEq)]
|
||||
pub struct Finite<T: Float>(T);
|
||||
|
||||
unsafe impl<T: Float> Zeroable for Finite<T> {}
|
||||
|
||||
impl<T: Float> Finite<T> {
|
||||
/// Create a new `Finite<T: Float>` safely.
|
||||
pub fn new(value: T) -> Option<Finite<T>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue