Merge pull request #1420 from apatniv/clippy_remove_clone

Clippy lint: Remove unnecessary clone
This commit is contained in:
Eric Huss 2021-01-04 11:33:37 -08:00 committed by GitHub
commit e651f4d734
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();