mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-18 18:58:45 +00:00
18 lines
214 B
Rust
18 lines
214 B
Rust
|
#![allow(clippy::all)]
|
||
|
|
||
|
enum _MyOption {
|
||
|
None,
|
||
|
Some(()),
|
||
|
}
|
||
|
|
||
|
impl _MyOption {
|
||
|
fn _foo(&self) {
|
||
|
match self {
|
||
|
&Self::Some(_) => {},
|
||
|
_ => {},
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {}
|