Remove unnecessary continue
.
This commit is contained in:
parent
e23bdd68f9
commit
a07011bde2
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user