rust-clippy/tests/ui/obfuscated_if_else.fixed
Ariel Uy 9ff7c91100 Add new lint obfuscated_if_else
New lint suggests using `if .. else ..` instead of
`.then_some(..).unwrap_or(..)`.
2022-07-17 18:44:49 -07:00

7 lines
102 B
Rust

// run-rustfix
#![warn(clippy::obfuscated_if_else)]
fn main() {
if true { "a" } else { "b" };
}