Skip to content

Commit 86741ea

Browse files
authored
Merge pull request rust-lang#19297 from Natural-selection1/master
Adjust relevance scoring threshold to consistent with existing implem…
2 parents 2cff701 + d95d278 commit 86741ea

File tree

1 file changed

+1
-1
lines changed
  • src/tools/rust-analyzer/crates/ide-completion/src

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/crates/ide-completion/src/item.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ impl CompletionRelevance {
350350
/// some threshold such that we think it is especially likely
351351
/// to be relevant.
352352
pub fn is_relevant(&self) -> bool {
353-
self.score() > 0
353+
self.score() > (!0 / 2)
354354
}
355355
}
356356

0 commit comments

Comments
 (0)