Skip to content

Commit 7afd776

Browse files
committed
Remove redundant continue
1 parent b657091 commit 7afd776

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
@@ -1535,12 +1535,10 @@ impl<'tcx> Ty<'tcx> {
15351535
let ty::Coroutine(def_id, args) = ty.kind() else { return cor_ty };
15361536
cor_ty = ty;
15371537
f(ty);
1538-
if tcx.is_async_drop_in_place_coroutine(*def_id) {
1539-
ty = args.first().unwrap().expect_ty();
1540-
continue;
1541-
} else {
1538+
if !tcx.is_async_drop_in_place_coroutine(*def_id) {
15421539
return cor_ty;
15431540
}
1541+
ty = args.first().unwrap().expect_ty();
15441542
}
15451543
}
15461544

0 commit comments

Comments
 (0)