]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/collapsible_match2.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / collapsible_match2.rs
index 542e69484276d47b96cc79c3ad382fd6270147a6..c8fb0a39e954cdeabf431e973c2cf19f830778b5 100644 (file)
@@ -57,7 +57,7 @@ fn lint_cases(opt_opt: Option<Option<u32>>, res_opt: Result<Option<u32>, String>
 
     // ref pattern and deref
     match Some(&[1]) {
-        Some(ref s) => match &*s {
+        Some(ref s) => match s {
             [n] => foo(n),
             _ => (),
         },