Skip to content

Commit 4edfcb3

Browse files
committed
Search continue in return expr.
1 parent 85384af commit 4edfcb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/loops.rs

Lines changed: 1 addition & 0 deletions
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)