Remove the Zeroable definition for Finite<T>.

I have no idea why it was added, and it appears to be unused.
This commit is contained in:
Ms2ger 2015-10-29 12:21:51 +01:00
parent 94ca87e7dd
commit 04e32c7ab0

View file

@ -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>> {