Skip to content

Commit

Permalink
Improve match statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmishra2005 committed May 14, 2021
1 parent 4698b36 commit 7d83f98
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/ui-toml/min_rust_version/min_rust_version.rs
Expand Up @@ -31,10 +31,7 @@ fn option_as_ref_deref() {
}

fn match_like_matches() {
let _y = match Some(5) {
Some(0) => true,
_ => false,
};
let _y = matches!(Some(5), Some(0));
}

fn match_same_arms() {
Expand Down

0 comments on commit 7d83f98

Please sign in to comment.