mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 13:03:02 +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: manifest_json
|
||||||
.grammars
|
.grammars
|
||||||
.into_iter()
|
.into_keys()
|
||||||
.map(|(grammar_name, _)| (grammar_name, Default::default()))
|
.map(|grammar_name| (grammar_name, Default::default()))
|
||||||
.collect(),
|
.collect(),
|
||||||
language_servers: Default::default(),
|
language_servers: Default::default(),
|
||||||
};
|
};
|
||||||
|
@ -89,7 +89,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> {
|
|||||||
"clippy::derive_ord_xor_partial_ord",
|
"clippy::derive_ord_xor_partial_ord",
|
||||||
"clippy::eq_op",
|
"clippy::eq_op",
|
||||||
"clippy::implied_bounds_in_impls",
|
"clippy::implied_bounds_in_impls",
|
||||||
"clippy::iter_kv_map",
|
|
||||||
"clippy::iter_overeager_cloned",
|
"clippy::iter_overeager_cloned",
|
||||||
"clippy::let_underscore_future",
|
"clippy::let_underscore_future",
|
||||||
"clippy::map_entry",
|
"clippy::map_entry",
|
||||||
|
Loading…
Reference in New Issue
Block a user