We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70a41a9 commit 07867fdCopy full SHA for 07867fd
clippy_lints/src/panic_unimplemented.rs
@@ -97,7 +97,7 @@ impl<'tcx> LateLintPass<'tcx> for PanicUnimplemented {
97
if let ExprKind::Block(ref block, _) = expr.kind;
98
if let Some(ref ex) = block.expr;
99
if let Some(params) = match_function_call(cx, ex, &paths::BEGIN_PANIC)
100
- .or(match_function_call(cx, ex, &paths::BEGIN_PANIC_FMT));
+ .or_else(|| match_function_call(cx, ex, &paths::BEGIN_PANIC_FMT));
101
then {
102
let span = get_outer_span(expr);
103
if is_expn_of(expr.span, "unimplemented").is_some() {
0 commit comments