From 1ddcdd9e42cc3c9cc4b1fb316e6d78dd137ab974 Mon Sep 17 00:00:00 2001 From: Alexander Koz <888526+boozook@users.noreply.github.com> Date: Tue, 11 Jun 2024 21:51:08 +0400 Subject: [PATCH] apply clippy suggestions Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- cargo/src/assets/mod.rs | 2 +- cargo/src/utils/cargo/meta_deps.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cargo/src/assets/mod.rs b/cargo/src/assets/mod.rs index f42e7a3c..430f5d32 100644 --- a/cargo/src/assets/mod.rs +++ b/cargo/src/assets/mod.rs @@ -368,7 +368,7 @@ pub mod proto { } let serializable = SerializablePlan { items: &serializable, - env: plan.used_env_vars() }; + env: plan.used_env_vars() }; let json = serde_json::to_string(&serializable)?; let difference = if path.try_exists()? { diff --git a/cargo/src/utils/cargo/meta_deps.rs b/cargo/src/utils/cargo/meta_deps.rs index f91df888..0275a911 100644 --- a/cargo/src/utils/cargo/meta_deps.rs +++ b/cargo/src/utils/cargo/meta_deps.rs @@ -278,7 +278,7 @@ impl<'t> MetaDeps<'t> { self.roots.iter().fold(BTreeMap::new(), |mut acc, root| { let key = TargetKey::from(root); acc.entry(key) - .or_insert(BTreeSet::new()) + .or_default() .insert(root.node().unit().platform); acc })