-
Notifications
You must be signed in to change notification settings - Fork 10
Clippy lints #27
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 lints #27
Conversation
|
Thanks for the contribution! I really appreciate it. Most of this is positive changes, but I need to give it a more thorough review before merging. Skimming the code, there are a couple of issues that stand out as potential problems that will come up during review that I'll just give the heads up on now... First, there were some removals of calls to The call to The rest looks pretty good but I'll give a more thorough review soon. |
|
I was torn between splitting this into separate pull requests and filling your inbox, and having a monolithic mess to go through. No performance regression with The linter is complaining about the I thought the import deglobbing might be controversial. I guess it's a matter of taste |
|
Mixing multiple changes in one PR is usually OK by me. I think allowing that ends up with a better result overall because splitting up changes as you're making edits as you go can be such a hassle as to discourage the edits. For the import de-globbing, I really don't care. At all. I think there is a tendency to waste a lot of hot air on things that are superficial - and the entire conversation detracts from getting good at the things that actually matter. |
|
there are some functions with unused parameters. Some of these are in trait implementations (including examples include
(there might be others) |
|
Making some progress here... I just did the first release of Firestorm (the profiler dependency). In this new version, we shouldn't get the lints for dropping the profiling sections since the macro will return a non-Copy type now even when profiling is disabled. |
I've reinstated the |
|
would love to add #![deny(clippy::all)]
#![warn(clippy::pedantic)]but that's going to give you something like 50 warnings/errors right now |
|
I attempted this and implemented/ignored the brunt of the stupid clippy complaints here. |
|
closing in favour of #30 |
not sure this case is covered by the contribution guidelines.
this pull request represents a bunch of small, largely cosmetic refactors -the vast majority of which are clippy lints.
weirdly, there's quite a few formatting changes too, despite the presence of
.rustfmt.tomlfile in the crate root. Eitherrustfmthasn't been run for a while, or perhaps it's not usually run with the nightly compiler?update: closes #28