diff options
| -rw-r--r-- | tests/ui-toml/min_rust_version/min_rust_version.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/ui-toml/min_rust_version/min_rust_version.rs b/tests/ui-toml/min_rust_version/min_rust_version.rs index bc41efa42a1..bf7da4015d3 100644 --- a/tests/ui-toml/min_rust_version/min_rust_version.rs +++ b/tests/ui-toml/min_rust_version/min_rust_version.rs @@ -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() { |
