Skip to content

Commit 5e13027

Browse files
committed
Clean up slice iteration
1 parent 278e335 commit 5e13027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/document/src/layers/folder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl Folder {
7171
let target_pos = self.position_of_layer(target_id)?;
7272

7373
let mut last_pos = source_pos;
74-
for layer_id in &source_ids[1..source_ids.len()] {
74+
for layer_id in &source_ids[1..] {
7575
let layer_pos = self.position_of_layer(*layer_id)?;
7676
if (layer_pos as i32 - last_pos as i32).abs() > 1 {
7777
// Selection is not contiguous

0 commit comments

Comments
 (0)