Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 6151865

Browse files
committed
Fix typo
1 parent 0cf275b commit 6151865

File tree

1 file changed

+2
-2
lines changed
  • src/tools/rust-analyzer/crates/rust-analyzer/src

1 file changed

+2
-2
lines changed

src/tools/rust-analyzer/crates/rust-analyzer/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ fn completion_item_hash(item: &CompletionItem, is_ref_completion: bool) -> [u8;
156156

157157
hasher.update([u8::from(item.ref_match.is_some())]);
158158
if let Some((ref_mode, text_size)) = &item.ref_match {
159-
let descriminant = match ref_mode {
159+
let discriminant = match ref_mode {
160160
CompletionItemRefMode::Reference(Mutability::Shared) => 0u8,
161161
CompletionItemRefMode::Reference(Mutability::Mut) => 1u8,
162162
CompletionItemRefMode::Dereference => 2u8,
163163
};
164-
hasher.update([descriminant]);
164+
hasher.update([discriminant]);
165165
hasher.update(u32::from(*text_size).to_le_bytes());
166166
}
167167

0 commit comments

Comments
 (0)