-
-
Notifications
You must be signed in to change notification settings - Fork 885
chore: Fix nightly clippy lint: clippy::if_then_panic #5400
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
Conversation
What do you think about the typo note, @adrian17? Should that be fixed or left as is? |
Huh, my own local nightly clippy doesn't complain about these bunch of instances caught by CI. I just updated it... Weird. |
The == asserts could be changed to assert_eq! (See also rust-lang/rust-clippy#7716) |
6443cda
to
84f720c
Compare
Yep, you are right, fixed! |
Darn, issue in a dependent crate: https://github.com/brendanzab/approx/blob/master/src/macros.rs#L83 |
Yep, almost done with the PR for that... :) |
There: brendanzab/approx#72 |
So, best case scenario now: The PR is accepted soon, a new version of |
Assuming it will take time for the PR to be merged (and a new |
84f720c
to
cc261c6
Compare
Thanks for the review @relrelb, I have applied your suggestions. |
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, LGTM! Will merge once CI passes.
Looks like the nightly Rust compiler is broken, as it emits hundreds of errors now. Will merge anyway when the required workflows finish. |
Yeah, saw the same thing on my machine too, will probably be fixed in a day or two. |
Also note the
// XXX
comment about a potential typo / copy-paste error found by accident.