From c3eab8d57d6ba3d0c4ff17c63294a6937209b9a6 Mon Sep 17 00:00:00 2001 From: Takayuki Maeda Date: Sun, 24 Oct 2021 18:27:46 +0900 Subject: [PATCH] fix a clippy warning --- src/cargo/core/workspace.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/core/workspace.rs b/src/cargo/core/workspace.rs index 931f277098b..a5b1de06496 100644 --- a/src/cargo/core/workspace.rs +++ b/src/cargo/core/workspace.rs @@ -431,7 +431,7 @@ impl<'cfg> Workspace<'cfg> { // but that's not quite right as it won't deal with overlaps. let mut combined = from_config; for (url, deps_from_manifest) in from_manifest { - if let Some(deps_from_config) = combined.get_mut(&url) { + if let Some(deps_from_config) = combined.get_mut(url) { // We want from_config to take precedence for each patched name. // NOTE: This is inefficient if the number of patches is large! let mut from_manifest_pruned = deps_from_manifest.clone();