mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 13:43:17 +00:00
10 lines
208 B
Rust
10 lines
208 B
Rust
#![warn(clippy::unwrap_used, clippy::expect_used)]
|
|
|
|
fn main() {
|
|
Some(3).unwrap();
|
|
Some(3).expect("Hello world!");
|
|
|
|
let a: Result<i32, i32> = Ok(3);
|
|
a.unwrap();
|
|
a.expect("Hello world!");
|
|
}
|