diff --git a/Cargo.toml b/Cargo.toml index 931d4eb3d7b..a4128e7789e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -176,7 +176,6 @@ explicit_auto_deref = "allow" field_reassign_with_default = "allow" forget_non_drop = "allow" format_collect = "allow" -for_kv_map = "allow" filter_map_bool_then = "allow" from_str_radix_10 = "allow" get_first = "allow" diff --git a/crates/hir-ty/src/infer/closure.rs b/crates/hir-ty/src/infer/closure.rs index d1080502cf1..12039173dd8 100644 --- a/crates/hir-ty/src/infer/closure.rs +++ b/crates/hir-ty/src/infer/closure.rs @@ -1008,7 +1008,7 @@ impl InferenceContext<'_> { let mut deferred_closures = mem::take(&mut self.deferred_closures); let mut dependents_count: FxHashMap = deferred_closures.keys().map(|it| (*it, 0)).collect(); - for (_, deps) in &self.closure_dependencies { + for deps in self.closure_dependencies.values() { for dep in deps { *dependents_count.entry(*dep).or_default() += 1; }