-
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
Community patches roll-up #13
Conversation
You will need to bump the minimum Rust version in |
Could you edit that? I'm far away from any laptop.
…On Wed, Aug 30, 2017 at 7:21 AM Doug Goldstein ***@***.***> wrote:
You will need to bump the minimum Rust version in .travis.yml to match
what num_traits requires, which based on the errors appears to be 1.8.0.
I think at this point its ok to do so given how old 1.0.0 and 1.8.0 are.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANsMEhUXc_IwfcHnPSTCCQQ-t_LdjR6ks5sdW_ZgaJpZM4PBVW1>
.
|
I'm not the author nor do I have commit access. |
Signed-off-by: Barry Allard <[email protected]>
@cardoe Oh well, thanks for noticing it. I was in the desert, but not doing Burning Man this year though. I'll play this for myself cryin' in my beer ;) 🤘 |
src/lib.rs
Outdated
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really necessary to be public? We only need FromPrimitive
which is already public.
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.
Noticed the same behavior is done in #11 but I still don't think its needed.
Yes, it doesn't appear to add anything of value. |
@@ -28,8 +28,7 @@ wrap your `enum` declaration inside the `enum_from_primitive!` macro. | |||
|
|||
```rust | |||
#[macro_use] extern crate enum_primitive; | |||
extern crate num; | |||
use num::FromPrimitive; | |||
use enum_primitive::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;
//! 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 comment
The reason will be displayed to describe this comment to others. Learn more.
use enum_primitive::FromPrimitive;
Boils down community improvements into a tiny mega PR.