38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
14 lines
215 B
Rust
14 lines
215 B
Rust
#![deny(clippy::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
|
|
}
|
|
}
|