mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-20 18:13:36 +00:00
13 lines
207 B
Rust
13 lines
207 B
Rust
#![deny(if_same_then_else)]
|
|
|
|
fn main() {}
|
|
|
|
pub fn foo(a: i32, b: i32) -> Option<&'static str> {
|
|
if a == b {
|
|
None
|
|
} else if a > b {
|
|
Some("a pfeil b")
|
|
} else {
|
|
None
|
|
}
|
|
}
|