This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2025-02-23 04:14:28 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
c10876e6c5
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 14:37:15 +00:00
//@run-rustfix
Add new lint `obfuscated_if_else` New lint suggests using `if .. else ..` instead of `.then_some(..).unwrap_or(..)`.
2022-07-10 21:37:38 +00:00
#![
warn(clippy::obfuscated_if_else)
]
fn
main
(
)
{
if
true
{
"
a
"
}
else
{
"
b
"
}
;
}
Reference in New Issue
Copy Permalink