Skip to content

Commit 94f8950

Browse files
Ms2gerandersk
authored andcommitted
Switch to num-traits
[[email protected]: Also use num_traits in the documentation rather than the reexport.] Closes andersk#6, closes andersk#8. Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 1d19c40 commit 94f8950

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ repository = "https://github.com/andersk/enum_primitive-rs.git"
99
homepage = "https://github.com/andersk/enum_primitive-rs"
1010
readme = "README.md"
1111

12-
[dependencies.num]
13-
version = "*"
12+
[dependencies.num-traits]
13+
version = "0.1.32"
1414
default-features = false

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
//!
3333
//! ```
3434
//! #[macro_use] extern crate enum_primitive;
35-
//! extern crate num;
36-
//! use num::FromPrimitive;
35+
//! extern crate num_traits;
36+
//! use num_traits::FromPrimitive;
3737
//!
3838
//! enum_from_primitive! {
3939
//! #[derive(Debug, PartialEq)]
@@ -53,10 +53,10 @@
5353
//! ```
5454
5555

56-
extern crate num;
56+
extern crate num_traits;
5757

5858
pub use std::option::Option;
59-
pub use num::FromPrimitive;
59+
pub use num_traits::FromPrimitive;
6060

6161
/// Helper macro for internal use by `enum_from_primitive!`.
6262
#[macro_export]

0 commit comments

Comments
 (0)