Skip to content

Commit 7d83f98

Browse files
Improve match statements
1 parent 4698b36 commit 7d83f98

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/ui-toml/min_rust_version/min_rust_version.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ fn option_as_ref_deref() {
3131
}
3232

3333
fn match_like_matches() {
34-
let _y = match Some(5) {
35-
Some(0) => true,
36-
_ => false,
37-
};
34+
let _y = matches!(Some(5), Some(0));
3835
}
3936

4037
fn match_same_arms() {

0 commit comments

Comments
 (0)