9ff7c91100
New lint suggests using `if .. else ..` instead of `.then_some(..).unwrap_or(..)`.
8 lines
102 B
Rust
8 lines
102 B
Rust
// run-rustfix
|
|
|
|
#![warn(clippy::obfuscated_if_else)]
|
|
|
|
fn main() {
|
|
if true { "a" } else { "b" };
|
|
}
|