Skip to content

Commit 07867fd

Browse files
committed
Clean up dogfood fallout
1 parent 70a41a9 commit 07867fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/panic_unimplemented.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ impl<'tcx> LateLintPass<'tcx> for PanicUnimplemented {
9797
if let ExprKind::Block(ref block, _) = expr.kind;
9898
if let Some(ref ex) = block.expr;
9999
if let Some(params) = match_function_call(cx, ex, &paths::BEGIN_PANIC)
100-
.or(match_function_call(cx, ex, &paths::BEGIN_PANIC_FMT));
100+
.or_else(|| match_function_call(cx, ex, &paths::BEGIN_PANIC_FMT));
101101
then {
102102
let span = get_outer_span(expr);
103103
if is_expn_of(expr.span, "unimplemented").is_some() {

0 commit comments

Comments
 (0)