From 1811c18b4a8c8abd3f3bc91a51a94affb9f4ebdf Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Thu, 18 Oct 2018 23:20:29 +0200 Subject: [PATCH] No need for clone --- components/library/src/library.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/library/src/library.rs b/components/library/src/library.rs index 4e5c5bd..2219054 100644 --- a/components/library/src/library.rs +++ b/components/library/src/library.rs @@ -112,7 +112,7 @@ impl Library { let mut path = root_path.clone(); // Index section is the first ancestor of every single section - let mut parents = vec![root_key.clone()]; + let mut parents = vec![root_key]; for component in §ion.file.components { path = path.join(component); // Skip itself