Repository navigation
Upgrade to Rust 1.88 - #19825
Upgrade to Rust 1.88#19825
Conversation
| self.contains(Key::OIT_ENABLED) | ||
| .then_some("_oit") | ||
| .unwrap_or_default(), | ||
| if self.contains(Key::MULTISAMPLED) { |
There was a problem hiding this comment.
What's wrong with unwrap_or_default()?
There was a problem hiding this comment.
obfuscated_if_else now supports then().unwrap_or_else() and then_some().unwrap_or_else() rust-lang/rust-clippy#14165
| }); | ||
| } | ||
|
|
||
| #[expect( |
There was a problem hiding this comment.
can we put this on the assert! instead of the function so it's more clear which line is triggering clippy?
There was a problem hiding this comment.
nope that doesn't work
There was a problem hiding this comment.
error[E0658]: attributes on expressions are experimental
There was a problem hiding this comment.
that sounds like you put it inside the assert! instead of above.
#[expect(
clippy::neg_multiply,
reason = "Clippy doesn't like this, but it's correct"
)]
assert_eq!(
mapped_curve.sample_unchecked(-1.0),
(-1.0 * 3.0 + 1.0) / 7.0
);seems to work for me.
There was a problem hiding this comment.
nvm, it's giving an error about not applying to macros
No description provided.