From 3c975257434eecf02bcc37637f880856e26ba700 Mon Sep 17 00:00:00 2001 From: apatniv Date: Thu, 31 Dec 2020 15:18:37 -0500 Subject: [PATCH] Clippy lint: Remove unnecessary clone --- src/book/book.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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>( 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();