Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/rust-analyzer/src/lib.rs')
-rw-r--r--crates/rust-analyzer/src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/lib.rs b/crates/rust-analyzer/src/lib.rs
index 61ec576dd4..ccffa7a671 100644
--- a/crates/rust-analyzer/src/lib.rs
+++ b/crates/rust-analyzer/src/lib.rs
@@ -142,9 +142,8 @@ fn completion_item_hash(item: &CompletionItem, is_ref_completion: bool) -> [u8;
hasher.update(prefix);
hasher.update(u32::from(*text_size).to_le_bytes());
}
- for (import_path, import_name) in &item.import_to_add {
+ for import_path in &item.import_to_add {
hasher.update(import_path);
- hasher.update(import_name);
}
hasher.finalize()
}