mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 13:43:17 +00:00
16 lines
241 B
Rust
16 lines
241 B
Rust
|
// non rustfixable
|
||
|
#![allow(unreachable_code)]
|
||
|
#![allow(dead_code)]
|
||
|
#![warn(clippy::question_mark_used)]
|
||
|
|
||
|
fn other_function() -> Option<i32> {
|
||
|
Some(32)
|
||
|
}
|
||
|
|
||
|
fn my_function() -> Option<i32> {
|
||
|
other_function()?;
|
||
|
None
|
||
|
}
|
||
|
|
||
|
fn main() {}
|