diff --git a/components/content/src/library.rs b/components/content/src/library.rs index a4e4b4e3c..f2aae54d0 100644 --- a/components/content/src/library.rs +++ b/components/content/src/library.rs @@ -271,12 +271,12 @@ impl Library { section.ignored_pages.clear(); section.ancestors.clear(); - if let Some(children) = subsections.get(&*path) { + if let Some(children) = subsections.get(path) { let mut children: Vec<_> = children.clone(); children.sort_by(|a, b| sections_weight[a].cmp(§ions_weight[b])); section.subsections = children; } - if let Some(parents) = ancestors.get(&*path) { + if let Some(parents) = ancestors.get(path) { section.ancestors = parents.clone(); } }