Fix clippy::for_kv_map lint violations (#36493)

Release Notes:

- N/A
This commit is contained in:
tidely
2025-08-20 11:22:19 +02:00
committed by GitHub
parent d4d049d7b9
commit 44941b5dfe
11 changed files with 16 additions and 15 deletions
@@ -312,8 +312,8 @@ impl LanguageServerTree {
/// Remove nodes with a given ID from the tree.
pub(crate) fn remove_nodes(&mut self, ids: &BTreeSet<LanguageServerId>) {
for (_, servers) in &mut self.instances {
for (_, nodes) in &mut servers.roots {
for servers in self.instances.values_mut() {
for nodes in &mut servers.roots.values_mut() {
nodes.retain(|_, (node, _)| node.id.get().is_none_or(|id| !ids.contains(id)));
}
}