-
Notifications
You must be signed in to change notification settings - Fork 118
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
chore(clippy): Fix clippy cast and closure warnings #5378
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #5378 +/- ##
==========================================
- Coverage 79.19% 79.16% -0.04%
==========================================
Files 308 308
Lines 39560 39757 +197
==========================================
+ Hits 31329 31472 +143
- Misses 8231 8285 +54 |
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.
clippy
on stable
has some suggestions regarding the .ok_or_else
.
I think stable clippy is wrong, I'll push some ignores when I get a chance. |
Co-authored-by: Marek <mail@marek.onl>
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.
We have more clippy::unnecessary-lazy-evaluations
.
Now I noticed |
Should be fixed now, I put it on the correct line. |
https://github.com/ZcashFoundation/zebra/actions/runs/3238406056/jobs/5307121094#step:6:105 |
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.
🎉
Motivation
Clippy nightly has new warnings, they clean up our code a bit.
Review
This is a low priority, it doesn't matter if it gets in the release candidate or not.
Reviewer Checklist