Skip to content

Commit e2344b9

Browse files
committed
Support no_std
1 parent cb61644 commit e2344b9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ homepage = "https://github.com/andersk/enum_primitive-rs"
1010
readme = "README.md"
1111

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

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@
5252
//! }
5353
//! ```
5454
55+
#![no_std]
5556

5657
extern crate num_traits;
5758

58-
pub use std::option::Option;
59+
pub use core::option::Option;
5960
pub use num_traits::FromPrimitive;
6061

6162
/// Helper macro for internal use by `enum_from_primitive!`.

0 commit comments

Comments
 (0)