mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
Addressed PR coments
This commit is contained in:
parent
7d83f98ff3
commit
9013bf299e
1 changed files with 4 additions and 1 deletions
|
@ -31,7 +31,10 @@ fn option_as_ref_deref() {
|
|||
}
|
||||
|
||||
fn match_like_matches() {
|
||||
let _y = matches!(Some(5), Some(0));
|
||||
let _y = match Some(5) {
|
||||
Some(0) => true,
|
||||
_ => false,
|
||||
};
|
||||
}
|
||||
|
||||
fn match_same_arms() {
|
||||
|
|
Loading…
Reference in a new issue