diff options
Diffstat (limited to 'crates/ide_completion/src')
-rw-r--r-- | crates/ide_completion/src/item.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide_completion/src/item.rs b/crates/ide_completion/src/item.rs index 352640e3b..3febab32b 100644 --- a/crates/ide_completion/src/item.rs +++ b/crates/ide_completion/src/item.rs | |||
@@ -156,7 +156,7 @@ impl CompletionRelevance { | |||
156 | /// | 156 | /// |
157 | /// See is_relevant if you need to make some judgement about score | 157 | /// See is_relevant if you need to make some judgement about score |
158 | /// in an absolute sense. | 158 | /// in an absolute sense. |
159 | pub fn score(&self) -> u8 { | 159 | pub fn score(&self) -> u32 { |
160 | let mut score = 0; | 160 | let mut score = 0; |
161 | 161 | ||
162 | if self.exact_name_match { | 162 | if self.exact_name_match { |
@@ -525,7 +525,7 @@ mod tests { | |||
525 | .map(|r| (r.score(), r)) | 525 | .map(|r| (r.score(), r)) |
526 | .sorted_by_key(|(score, _r)| *score) | 526 | .sorted_by_key(|(score, _r)| *score) |
527 | .fold( | 527 | .fold( |
528 | (u8::MIN, vec![vec![]]), | 528 | (u32::MIN, vec![vec![]]), |
529 | |(mut currently_collecting_score, mut out), (score, r)| { | 529 | |(mut currently_collecting_score, mut out), (score, r)| { |
530 | if currently_collecting_score == score { | 530 | if currently_collecting_score == score { |
531 | out.last_mut().unwrap().push(r); | 531 | out.last_mut().unwrap().push(r); |