No need for clone

This commit is contained in:
Vincent Prouillet 2018-10-18 23:20:29 +02:00
parent 0101e5cb12
commit 1811c18b4a

View file

@ -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 &section.file.components {
path = path.join(component);
// Skip itself