diff options
author | Eric Huss <eric@huss.org> | 2021-01-04 11:33:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-04 11:33:37 -0800 |
commit | e651f4d734c8e2f2df1d6048085711b774f7cbf2 (patch) | |
tree | 5c09744d3d757c10c7e69b9fc67916c03c0cae52 /src | |
parent | 87d2cd9845c8150e44206df3a288fe1f1c28c2ce (diff) | |
parent | 3c975257434eecf02bcc37637f880856e26ba700 (diff) |
Merge pull request #1420 from apatniv/clippy_remove_clone
Clippy lint: Remove unnecessary clone
Diffstat (limited to 'src')
-rw-r--r-- | src/book/book.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/book/book.rs b/src/book/book.rs index 4331a970..38d14682 100644 --- a/src/book/book.rs +++ b/src/book/book.rs @@ -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(); |