Skip to content

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

Closed
wants to merge 5 commits into from
Closed

Community patches roll-up #13

wants to merge 5 commits into from

Conversation

skull-squadron
Copy link

Boils down community improvements into a tiny mega PR.

@cardoe
Copy link

cardoe commented Aug 30, 2017

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.

@skull-squadron
Copy link
Author

skull-squadron commented Aug 30, 2017 via email

@cardoe
Copy link

cardoe commented Aug 30, 2017

I'm not the author nor do I have commit access.

@skull-squadron
Copy link
Author

skull-squadron commented Aug 31, 2017

@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 ;)
insert tiny violin

🤘

src/lib.rs Outdated
@@ -53,7 +53,7 @@
//! ```


extern crate num_traits;
pub extern crate num_traits;
Copy link

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.

Copy link

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.

@skull-squadron
Copy link
Author

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;
Copy link

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;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use enum_primitive::FromPrimitive;

ctrlcctrlv added a commit to MFEK/enum_primitive.rlib that referenced this pull request Nov 14, 2021
ctrlcctrlv added a commit to MFEK/enum_primitive.rlib that referenced this pull request Nov 14, 2021
ctrlcctrlv added a commit to MFEK/enum_primitive.rlib that referenced this pull request Nov 14, 2021
@skull-squadron skull-squadron closed this by deleting the head repository Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants