Skip to content

Commit

Permalink
Remove Signed trait and add SignedInt trait
Browse files Browse the repository at this point in the history
The methods have been moved into Float and SignedInt
  • Loading branch information
brendanzab committed Nov 12, 2014
1 parent 93bfb8e commit bddde2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ use std::io::fs::PathExtensions;
use std::io::stdio::StdWriter;
use std::io::{File, ChanReader, ChanWriter};
use std::io;
use std::num::{Int, FloatMath};
use std::num::{Float, FloatMath, Int};
use std::os;
use std::string::String;
use std::task::TaskBuilder;
Expand Down
1 change: 1 addition & 0 deletions stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ mod tests {

macro_rules! assert_approx_eq(
($a:expr, $b:expr) => ({
use std::num::Float;
let (a, b) = (&$a, &$b);
assert!((*a - *b).abs() < 1.0e-6,
"{} is not approximately equal to {}", *a, *b);
Expand Down

0 comments on commit bddde2b

Please sign in to comment.