2019-09-24 16:55:05 -05:00
|
|
|
#![allow(clippy::comparison_chain)]
|
2018-07-30 04:33:44 -05:00
|
|
|
#![deny(clippy::if_same_then_else)]
|
2018-02-09 08:23:51 -06:00
|
|
|
|
2024-09-24 04:58:04 -05:00
|
|
|
// Test for https://github.com/rust-lang/rust-clippy/issues/2426
|
2019-02-06 00:45:57 -06:00
|
|
|
|
2018-02-09 08:23:51 -06:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|