Skip to content

Commit a935826

Browse files
committed
Fix the actual bug
1 parent 0cd9b06 commit a935826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/returns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ fn last_statement_borrows<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>)
295295
{
296296
ControlFlow::Break(())
297297
} else {
298-
ControlFlow::Continue(Descend::from(!expr.span.from_expansion()))
298+
ControlFlow::Continue(Descend::from(!e.span.from_expansion()))
299299
}
300300
})
301301
.is_some()

0 commit comments

Comments
 (0)