Skip to content

Commit 008fdbd

Browse files
committed
Remove redundant continue
1 parent 9b84056 commit 008fdbd

File tree

1 file changed

+2
-4
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+2
-4
lines changed

compiler/rustc_middle/src/ty/sty.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,12 +1522,10 @@ impl<'tcx> Ty<'tcx> {
15221522
let ty::Coroutine(def_id, args) = ty.kind() else { return cor_ty };
15231523
cor_ty = ty;
15241524
f(ty);
1525-
if tcx.is_async_drop_in_place_coroutine(*def_id) {
1526-
ty = args.first().unwrap().expect_ty();
1527-
continue;
1528-
} else {
1525+
if !tcx.is_async_drop_in_place_coroutine(*def_id) {
15291526
return cor_ty;
15301527
}
1528+
ty = args.first().unwrap().expect_ty();
15311529
}
15321530
}
15331531

0 commit comments

Comments
 (0)