-
Notifications
You must be signed in to change notification settings - Fork 84
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 clippy warnings #272
Fix clippy warnings #272
Conversation
Signed-off-by: Tyler Fanelli <[email protected]>
Signed-off-by: Tyler Fanelli <[email protected]>
Signed-off-by: Tyler Fanelli <[email protected]>
8a681a2
to
e4e2bd5
Compare
Signed-off-by: Tyler Fanelli <[email protected]>
Signed-off-by: Tyler Fanelli <[email protected]>
Signed-off-by: Tyler Fanelli <[email protected]>
Signed-off-by: Tyler Fanelli <[email protected]>
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.
LGTM
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.
PR looks good, though I am not sure if I am personally a fan of this clippy warning with all of the (
)
. I am not gonna fight it though, we should probably use the recommendation by clippy.
Please take another look at the map_or
-> is_none_or
suggestion, I think we can use it.
Personally I'm not a fan either, but also don't like to fight clippy. Perhaps we can relax clippy's rules a bit? Up to you.
It's currently an unstable library feature (I believe), which was preventing me from using that. |
What version of rust are you using though? As of Rust 1.82 (released 17 October 2024) it should be stable. So I don't think it's unreasonable to use it, though still relatively new. |
Yep, I was on an older version. Fixing now. |
Signed-off-by: Tyler Fanelli <[email protected]>
@mtjhrc Can you re-review? |
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.
LGTM now, thanks!
Fair amount of clippy fixes spanning multiple files.