]> git.lizzy.rs Git - rust.git/commitdiff
Remove unnecessary ref
authorBood Qian <bood@glowing.com>
Sun, 12 Feb 2017 01:16:37 +0000 (09:16 +0800)
committerBood Qian <bood@glowing.com>
Sun, 12 Feb 2017 01:16:37 +0000 (09:16 +0800)
clippy_lints/src/matches.rs

index 02d089e1af4388f935bfd3cab52b815550a34aa4..66b55c48455c33eebe43bd2f6c6619862d30a7ce 100644 (file)
@@ -379,7 +379,7 @@ fn is_panic_block(cx: &LateContext, block: &Block) -> bool {
         (&Some(ref exp), 0, _) => {
             is_expn_of(cx, exp.span, "panic").is_some() && is_expn_of(cx, exp.span, "unreachable").is_none()
         },
-        (&None, 1, Some(ref stmt)) => {
+        (&None, 1, Some(stmt)) => {
             is_expn_of(cx, stmt.span, "panic").is_some() && is_expn_of(cx, stmt.span, "unreachable").is_none()
         },
         _ => false,