Skip to content

Commit

Permalink
deps: use num-traits instead of num
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Mar 22, 2018
1 parent dfa1b26 commit 2490e83
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ license = "Unlicense/MIT"
name = "stats"

[dependencies]
num = "0.1"
num-traits = "0.2"
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
extern crate num;
extern crate num_traits;

use std::cmp::Ordering;
use std::hash;
use num::ToPrimitive;
use num_traits::ToPrimitive;

pub use frequency::Frequencies;
pub use minmax::MinMax;
Expand Down
2 changes: 1 addition & 1 deletion src/online.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::default::Default;
use std::fmt;
use std::iter::{FromIterator, IntoIterator};

use num::{Float, ToPrimitive};
use num_traits::ToPrimitive;

use Commute;

Expand Down
2 changes: 1 addition & 1 deletion src/sorted.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::collections::BinaryHeap;
use std::default::Default;
use std::iter::{FromIterator, IntoIterator};

use num::ToPrimitive;
use num_traits::ToPrimitive;

use {Commute, Partial};

Expand Down
2 changes: 1 addition & 1 deletion src/unsorted.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::default::Default;
use std::iter::{FromIterator, IntoIterator};
use num::ToPrimitive;
use num_traits::ToPrimitive;

use {Commute, Partial};

Expand Down

0 comments on commit 2490e83

Please sign in to comment.