-
Notifications
You must be signed in to change notification settings - Fork 22
Community patches roll-up #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
2e48273
ad2b29b
a430799
695b052
cd85852
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,9 +31,9 @@ | |
//! # Example | ||
//! | ||
//! ``` | ||
//! #[macro_use] extern crate enum_primitive; | ||
//! extern crate num_traits; | ||
//! use num_traits::FromPrimitive; | ||
//! #[macro_use] | ||
//! extern crate enum_primitive; | ||
//! use enum_primitive::num_traits::FromPrimitive; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
//! | ||
//! enum_from_primitive! { | ||
//! #[derive(Debug, PartialEq)] | ||
|
@@ -53,7 +53,7 @@ | |
//! ``` | ||
|
||
|
||
extern crate num_traits; | ||
pub extern crate num_traits; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this really necessary to be public? We only need There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Noticed the same behavior is done in #11 but I still don't think its needed. |
||
|
||
pub use std::option::Option; | ||
pub use num_traits::FromPrimitive; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use enum_primitive::FromPrimitive;