Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Enable `clippy::iter_kv_map` (#8832)

Marshall Bowers33ef5b773100
diff --git a/crates/extension/src/extension_store.rs b/crates/extension/src/extension_store.rs
index 1386ae016c8..55fd214e3e0 100644
--- a/crates/extension/src/extension_store.rs
+++ b/crates/extension/src/extension_store.rs
@@ -798,8 +798,8 @@ impl ExtensionStore {
},
grammars: manifest_json
.grammars
- .into_iter()
- .map(|(grammar_name, _)| (grammar_name, Default::default()))
+ .into_keys()
+ .map(|grammar_name| (grammar_name, Default::default()))
.collect(),
language_servers: Default::default(),
};
diff --git a/tooling/xtask/src/main.rs b/tooling/xtask/src/main.rs
index ca268668d87..e40a92c0a0c 100644
--- a/tooling/xtask/src/main.rs
+++ b/tooling/xtask/src/main.rs
@@ -89,7 +89,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> {
"clippy::derive_ord_xor_partial_ord",
"clippy::eq_op",
"clippy::implied_bounds_in_impls",
- "clippy::iter_kv_map",
"clippy::iter_overeager_cloned",
"clippy::let_underscore_future",
"clippy::map_entry",