Merge pull request #1420 from apatniv/clippy_remove_clone
Clippy lint: Remove unnecessary clone
This commit is contained in:
commit
e651f4d734
|
@ -280,7 +280,7 @@ fn load_chapter<P: AsRef<Path>>(
|
||||||
Chapter::new_draft(&link.name, parent_names.clone())
|
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();
|
ch.number = link.number.clone();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue