Skip to content

Commit

Permalink
Clean up dogfood fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
JarredAllen committed Jul 16, 2020
1 parent 70a41a9 commit 07867fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/panic_unimplemented.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl<'tcx> LateLintPass<'tcx> for PanicUnimplemented {
if let ExprKind::Block(ref block, _) = expr.kind;
if let Some(ref ex) = block.expr;
if let Some(params) = match_function_call(cx, ex, &paths::BEGIN_PANIC)
.or(match_function_call(cx, ex, &paths::BEGIN_PANIC_FMT));
.or_else(|| match_function_call(cx, ex, &paths::BEGIN_PANIC_FMT));
then {
let span = get_outer_span(expr);
if is_expn_of(expr.span, "unimplemented").is_some() {
Expand Down

0 comments on commit 07867fd

Please sign in to comment.