Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
style: Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Apr 1, 2024
1 parent cf7d69e commit 992f1e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ops/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ fn resolve_features(
})
.collect::<HashMap<_, _>>();

let mut activated_queue = explicit.iter().cloned().collect::<Vec<_>>();
let mut activated_queue = explicit.to_vec();

while let Some(current) = activated_queue.pop() {
let Some(current_activated) = features.get(&current) else {
Expand All @@ -464,12 +464,12 @@ fn resolve_features(
};
if status.is_disabled() {
*status = FeatureStatus::Enabled;
activated_queue.push(activated.clone());
activated_queue.push(*activated);
}
}
}

let mut resolved: Vec<_> = resolved.into_iter().collect();
resolved.sort_by_key(|(name, status)| (*status, name.clone()));
resolved.sort_by_key(|(name, status)| (*status, *name));
resolved
}

0 comments on commit 992f1e1

Please sign in to comment.