Remove unnecessary continue.

This commit is contained in:
Nicholas Nethercote 2024-10-08 11:17:27 +11:00
parent e23bdd68f9
commit a07011bde2

View File

@ -53,7 +53,7 @@ fn next(&mut self) -> Option<Self::Item> {
// may hold one further down (e.g., we never return
// downcasts here, but may return a base of a downcast).
'cursor: loop {
loop {
match cursor.last_projection() {
None => {
self.next = None;
@ -72,7 +72,6 @@ fn next(&mut self) -> Option<Self::Item> {
| ProjectionElem::ConstantIndex { .. }
| ProjectionElem::Index(_) => {
cursor = cursor_base;
continue 'cursor;
}
ProjectionElem::Subtype(..) => {
panic!("Subtype projection is not allowed before borrow check")