Skip to content

Commit

Permalink
apply clippy 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 7c3cf4f commit 1ddcdd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cargo/src/assets/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()? {
Expand Down
2 changes: 1 addition & 1 deletion cargo/src/utils/cargo/meta_deps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit 1ddcdd9

Please sign in to comment.