Skip to content

Commit

Permalink
content: Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sgued authored and Keats committed Feb 16, 2023
1 parent 3ef719a commit e290616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/content/src/library.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(&sections_weight[b]));
section.subsections = children;
}
if let Some(parents) = ancestors.get(&*path) {
if let Some(parents) = ancestors.get(path) {
section.ancestors = parents.clone();
}
}
Expand Down

0 comments on commit e290616

Please sign in to comment.