-
Notifications
You must be signed in to change notification settings - Fork 29
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
Use of num_derive::FromPrimitive
throws Clippy lint clippy::use_self
#47
Comments
ref: https://rust-lang.github.io/rust-clippy/master/#use_self That's currently labeled "Nursery" and is allowed by default. I find that a rather pedantic style lint, and not really relevant to macro-generated code. That said, if |
While I'm at it, you mind if I fix any other Clippy lints that come up do you prefer I just patch this one instance? |
Actually, this lint might not even originate from the |
Ah, there are subtle differences in how "local" crates are treated for stuff like this. I know that "remote" crates are built with |
The same problem haunts a number of other crates. It is tracked in clippy here: rust-lang/rust-clippy#6902 |
Clippy seems to exempt the proc-macro code now! rust-lang/rust-clippy#8694 |
I've just bumped my tool-chain release up from
nightly-2021-02-20
tonightly-2021-06-04
and a new warning arises for thenum_derive::FromPrimitive
derive macro.The Clippy lint
clippy::use_self
is thrown for the following derive macro use-case:The text was updated successfully, but these errors were encountered: