mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-12 00:45:06 +00:00
Merge pull request #19297 from Natural-selection1/master
Adjust relevance scoring threshold to consistent with existing implem…
This commit is contained in:
commit
1ea081fe40
1 changed files with 1 additions and 1 deletions
|
|
@ -350,7 +350,7 @@ impl CompletionRelevance {
|
||||||
/// some threshold such that we think it is especially likely
|
/// some threshold such that we think it is especially likely
|
||||||
/// to be relevant.
|
/// to be relevant.
|
||||||
pub fn is_relevant(&self) -> bool {
|
pub fn is_relevant(&self) -> bool {
|
||||||
self.score() > 0
|
self.score() > (!0 / 2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue