diff options
| author | Niki4tap <rombiklol2@gmail.com> | 2022-12-23 00:57:28 +0300 |
|---|---|---|
| committer | Niki4tap <rombiklol2@gmail.com> | 2022-12-23 00:57:28 +0300 |
| commit | a9358260717e55c367f16bc033990bac77cfb5a1 (patch) | |
| tree | 25a739663ce5d482b76e9b04fa544807c89c6aeb | |
| parent | 0cd9b06125c5a4ffce659bc92328946be94ccc2b (diff) | |
| download | rust-a9358260717e55c367f16bc033990bac77cfb5a1.tar.gz rust-a9358260717e55c367f16bc033990bac77cfb5a1.zip | |
Fix the actual bug
| -rw-r--r-- | clippy_lints/src/returns.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/returns.rs b/clippy_lints/src/returns.rs index 0da50450512..bbbd9e4989e 100644 --- a/clippy_lints/src/returns.rs +++ b/clippy_lints/src/returns.rs @@ -295,7 +295,7 @@ fn last_statement_borrows<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { ControlFlow::Break(()) } else { - ControlFlow::Continue(Descend::from(!expr.span.from_expansion())) + ControlFlow::Continue(Descend::from(!e.span.from_expansion())) } }) .is_some() |
