mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-26 22:12:04 +03:00
Enable clippy::iter_kv_map
(#8832)
This PR enables the [`clippy::iter_kv_map`](https://rust-lang.github.io/rust-clippy/master/index.html#/iter_kv_map) rule and fixes the outstanding violations. Release Notes: - N/A
This commit is contained in:
parent
16be391211
commit
33ef5b7731
@ -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(),
|
||||
};
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user