Skip to content

Commit 53260df

Browse files
committed
fix a false negative on needless_return
1 parent db6ea84 commit 53260df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/returns.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ fn check_final_expr<'tcx>(
223223
},
224224
_ => (),
225225
},
226+
ExprKind::DropTemps(expr) => check_final_expr(cx, expr, None, RetReplacement::Empty),
226227
_ => (),
227228
}
228229
}

0 commit comments

Comments
 (0)