mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
6b59675449
It does not seem to be necessary
16 lines
318 B
Rust
16 lines
318 B
Rust
#![allow(clippy::comparison_chain)]
|
|
#![deny(clippy::if_same_then_else)]
|
|
|
|
/// Test for https://github.com/rust-lang/rust-clippy/issues/2426
|
|
|
|
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
|
|
}
|
|
}
|