Addressed PR coments
This commit is contained in:
parent
34055a932b
commit
27defcd14f
@ -31,7 +31,10 @@ fn option_as_ref_deref() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn match_like_matches() {
|
fn match_like_matches() {
|
||||||
let _y = matches!(Some(5), Some(0));
|
let _y = match Some(5) {
|
||||||
|
Some(0) => true,
|
||||||
|
_ => false,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
fn match_same_arms() {
|
fn match_same_arms() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user