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