Remove unnecessary borrows

This produces an `unused_must_use` warning on nightly:
https://github.com/rust-lang/rust/pull/86426
This commit is contained in:
Paul Gey 2021-08-14 15:01:16 +02:00
parent c6dd5da5e6
commit a533e4d7bb
3 changed files with 3 additions and 3 deletions

View file

@ -586,7 +586,7 @@ where
break;
}
if i > 0 {
&self.layers[0..(i + 1)].rotate_left(1);
self.layers[0..(i + 1)].rotate_left(1);
}
break;
} else {