-
Notifications
You must be signed in to change notification settings - Fork 867
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 warnings introduced by Rust/Clippy 1.57.0 #992
Conversation
Codecov Report
@@ Coverage Diff @@
## master #992 +/- ##
==========================================
- Coverage 82.31% 82.29% -0.02%
==========================================
Files 168 168
Lines 48763 48761 -2
==========================================
- Hits 40139 40128 -11
- Misses 8624 8633 +9
Continue to review full report at Codecov.
|
Thanks @carols10cents for the quick fix. Could you run |
16a5283
to
48b37a5
Compare
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.
Thanks @carols10cents
* Remove needless borrows identified by clippy https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow * Remove muts that are no longer needed * Derive Default instead of using an equivalent manual impl Identified by clippy. https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls * Remove redundant closures Identified by clippy. https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure * Allow dead code on a field Rust now identifies as never read
…elease (#1004) * Fix warnings introduced by Rust/Clippy 1.57.0 (#992) * Remove needless borrows identified by clippy https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow * Remove muts that are no longer needed * Derive Default instead of using an equivalent manual impl Identified by clippy. https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls * Remove redundant closures Identified by clippy. https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure * Allow dead code on a field Rust now identifies as never read * Add some extra drops to make it clear what we want to do Co-authored-by: Carol (Nichols || Goulding) <[email protected]>
Which issue does this PR close?
Closes #991.
Rationale for this change
Upgrading is great! Passing CI is great!
What changes are included in this PR?
I've fixed a number of new warnings. The only one I chose to allow is a new one for a field that's unread, and I'm not sure if that's on purpose or not.
Are there any user-facing changes?
Shouldn't be!