Fix clippy::for_kv_map lint violations (#36493)

Release Notes:

- N/A
This commit is contained in:
tidely 2025-08-20 12:22:19 +03:00 committed by GitHub
parent d4d049d7b9
commit 44941b5dfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 16 additions and 15 deletions

View file

@ -1175,16 +1175,16 @@ impl ExtensionStore {
}
}
for (server_id, _) in &extension.manifest.context_servers {
for server_id in extension.manifest.context_servers.keys() {
self.proxy.unregister_context_server(server_id.clone(), cx);
}
for (adapter, _) in &extension.manifest.debug_adapters {
for adapter in extension.manifest.debug_adapters.keys() {
self.proxy.unregister_debug_adapter(adapter.clone());
}
for (locator, _) in &extension.manifest.debug_locators {
for locator in extension.manifest.debug_locators.keys() {
self.proxy.unregister_debug_locator(locator.clone());
}
for (command_name, _) in &extension.manifest.slash_commands {
for command_name in extension.manifest.slash_commands.keys() {
self.proxy.unregister_slash_command(command_name.clone());
}
}
@ -1386,7 +1386,7 @@ impl ExtensionStore {
);
}
for (id, _context_server_entry) in &manifest.context_servers {
for id in manifest.context_servers.keys() {
this.proxy
.register_context_server(extension.clone(), id.clone(), cx);
}