-
Notifications
You must be signed in to change notification settings - Fork 26
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
Clippy error "useless lint attribute" when using FromPrimitive #20
Comments
I think it's warning about this code in the expansion: #[allow(unused_qualifications)]
extern crate num_traits as _num_traits; That |
What is necessary to fix this? The "useless lint attribute" is in the correctness category of clips and defaults to deny. |
@athei probably just needs to move the lint back onto the |
Should be fixed by num-derive 0.2.5. Let me know if there's still an issue. |
Indeed that fixed the warning. |
Getting this error when running latest clippy on my code, after adding
FromPrimitive
code is just a simple enum like this
rustc 1.32.0-nightly (25a42b2ce 2018-11-07)
clippy 0.0.212 (d8b42690 2018-11-04)
0.2.3
The text was updated successfully, but these errors were encountered: