Skip to content

Commit 3c97525

Browse files
committed
Clippy lint: Remove unnecessary clone
1 parent a64a7b7 commit 3c97525

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)