-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Get rid of clippy remainings. #7355
Conversation
Does this also counts as 'clippy remainings'? :) Maybe worth adding to this PR as well. Otherwise - lgtm. |
Good catch. Forgot to update |
|
||
// Clippy settings | ||
// Most of the time much more readable | ||
#![cfg_attr(feature="dev", allow(needless_range_loop))] |
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.
if we want to run clippy as a plugin, we should not remove those, but only rename to:
#[cfg_attr(feature="cargo-clippy", allow(needless_range_loop))]
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.
I tried running cargo-clipp
as a plugin but it didn't work (I think parity failed to compile on nightly). Let's look at this from a fresh perspective when it works, some of the things here might not be valid any more, I would prefer to fix the code at some point rather than disable lints.
What do you think?
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.
fair enough ;)
We don't really use this feature any more.
I tried running clippy as cargo plugin, but unfortunatelly it failed to compile Parity on latest nightly.