refactoring

This commit is contained in:
JOLIMAITRE Matthieu 2022-04-04 14:47:26 +03:00
parent ce55e6a545
commit f6a5fb6985

View file

@ -170,7 +170,12 @@ impl<'g> Displacement<'g> {
}
pub fn move_all(&mut self) {
while self.move_once() {}
loop {
let can_continue = self.move_once();
if !can_continue {
break;
}
}
}
fn move_once(&mut self) -> bool {