From e290616fadf95f31e556c465021a372944e9023d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Sun, 30 Oct 2022 14:46:51 +0100 Subject: [PATCH] content: Fix clippy warnings --- components/content/src/library.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/content/src/library.rs b/components/content/src/library.rs index a4e4b4e3ce..f2aae54d0b 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(); } }