Skip to content

Commit 161dec6

Browse files
committed
Search continue in return expr.
1 parent 3227609 commit 161dec6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/loops.rs

+1
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ fn contains_continue_decl(decl: &Decl, dest: &NodeId) -> bool {
466466

467467
fn contains_continue_expr(expr: &Expr, dest: &NodeId) -> bool {
468468
match expr.node {
469+
ExprRet(Some(ref e)) |
469470
ExprBox(ref e) |
470471
ExprUnary(_, ref e) |
471472
ExprCast(ref e, _) |

0 commit comments

Comments
 (0)