From 04e32c7ab09920be8406e33581ba483e9c322409 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Thu, 29 Oct 2015 12:21:51 +0100 Subject: [PATCH] Remove the Zeroable definition for Finite. I have no idea why it was added, and it appears to be unused. --- components/script/dom/bindings/num.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/components/script/dom/bindings/num.rs b/components/script/dom/bindings/num.rs index ed5d78cdb6c..720aeb28557 100644 --- a/components/script/dom/bindings/num.rs +++ b/components/script/dom/bindings/num.rs @@ -4,7 +4,6 @@ //! The `Finite` 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); -unsafe impl Zeroable for Finite {} - impl Finite { /// Create a new `Finite` safely. pub fn new(value: T) -> Option> {