Skip to content

Commit

Permalink
apply fmt suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
boozook and github-actions[bot] authored Jun 11, 2024
1 parent 1ddcdd9 commit 20a2482
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cargo/src/utils/cargo/meta_deps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,7 @@ impl<'t> MetaDeps<'t> {
pub fn roots_by_compile_target(&self) -> BTreeMap<TargetKey, BTreeSet<cargo::core::compiler::CompileKind>> {
self.roots.iter().fold(BTreeMap::new(), |mut acc, root| {
let key = TargetKey::from(root);
acc.entry(key)
.or_default()
.insert(root.node().unit().platform);
acc.entry(key).or_default().insert(root.node().unit().platform);
acc
})
}
Expand Down

0 comments on commit 20a2482

Please sign in to comment.