This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
0e1caa765e
rust
/
tests
/
ui
/
obfuscated_if_else.fixed
8 lines
102 B
Rust
Raw
Normal View
History
Unescape
Escape
Update to a compiletest-rs version that requires `//@` for commands
2023-04-20 09:37:15 -05:00
//@run-rustfix
Add new lint `obfuscated_if_else` New lint suggests using `if .. else ..` instead of `.then_some(..).unwrap_or(..)`.
2022-07-10 16:37:38 -05:00
#![
warn(clippy::obfuscated_if_else)
]
fn
main
(
)
{
if
true
{
"
a
"
}
else
{
"
b
"
}
;
}
Reference in New Issue
Copy Permalink