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
Fix as many clippy problems as possible #31500
Comments
@mrobinson Please I will love to work on this task but can you give some resources on how to successfully run the project locally ? |
BTW, some of the clippy warnings can be fixed automatically, e.g.
will apply some fixes automatically in the Note that this can mess up the formatting, so remember to run |
I do not recommend using |
I'm going to copy this here since now the big pr is split into multiple ones, and it can be helpful so people looking to fix new warnings can know where to continue: The prs above are fixes for most warnings until
They also hopefully remove all clippy errors until The next steps to tackle would be:
Edit: Update work that was already completed |
As seems #31500 still remain opened here's the next partial fix. Fixed list: `unused_mut`, `clippy::needless_borrow`, `clippy::match_ref_pats`, `clippy::borrow_deref_ref`, `clippy::ptr_eq`, `clippy::unnecessary_cast`, `clippy::derivable_impls`, `clippy::collapsible_match`, `clippy::extra_unused_lifetimes`, `clippy::map_clone`, `clippy::manual_filter`. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes are part of #31500. - [x] These changes do not require tests because are only cosmetic.
Hello everyone. |
What error? |
Thanks for asking @sagudev. It might be an isolated incident on my end. |
This is due to #32208, you might need to do |
Alright, thanks again. |
Steps:
./mach cargo-clippy
components/remutex/lib.rs
.As this issue is large enough to be worked on in parallel, please don't ask to assign it to yourself. If you want to post fixes for a particular section of code, just check the PRs linked here to make sure that you are fixing different issues.
The text was updated successfully, but these errors were encountered: