diff --git a/src/traits.rs b/src/traits.rs index d79c80e1ad..016cf527d8 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -2,13 +2,13 @@ // Note copied from the stdlib under MIT license -use std::ops::{ Add, Div, Mul, Neg, Rem, Sub }; +use std::ops::{ Add, Div, Mul, Rem, Sub }; use std::num::{ Float, Int, NumCast }; use std::marker::Reflect; /// Num trait from old stdlib -pub trait Num: Zero + One + Add + Sub + Mul + Div + Rem + Neg + PartialEq { } -impl + Sub + Mul + Div + Rem + Neg + PartialEq> Num for A { } +pub trait Num: Zero + One + Add + Sub + Mul + Div + Rem + PartialEq { } +impl + Sub + Mul + Div + Rem + PartialEq> Num for A { } /// Zero trait from old stdlib pub trait Zero: Add {