Skip to content

Commit e651f4d

Browse files
authored
Merge pull request #1420 from apatniv/clippy_remove_clone
Clippy lint: Remove unnecessary clone
2 parents 87d2cd9 + 3c97525 commit e651f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/book/book.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ fn load_chapter<P: AsRef<Path>>(
280280
Chapter::new_draft(&link.name, parent_names.clone())
281281
};
282282

283-
let mut sub_item_parents = parent_names.clone();
283+
let mut sub_item_parents = parent_names;
284284

285285
ch.number = link.number.clone();
286286

0 commit comments

Comments
 (0)