Remove unnecessary ref

This commit is contained in:
Bood Qian 2017-02-12 09:16:37 +08:00
parent 1c381ec642
commit 9824c997fe

View 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,