mirror of
https://github.com/rust-lang/mdBook
synced 2025-03-04 23:27:17 +00:00
Clippy lint: Remove unnecessary clone
This commit is contained in:
parent
a64a7b7470
commit
3c97525743
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ fn load_chapter<P: AsRef<Path>>(
|
|||
Chapter::new_draft(&link.name, parent_names.clone())
|
||||
};
|
||||
|
||||
let mut sub_item_parents = parent_names.clone();
|
||||
let mut sub_item_parents = parent_names;
|
||||
|
||||
ch.number = link.number.clone();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue