mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
feat: Deprioritize ops methods in completion
This commit is contained in:
parent
41a0e95d61
commit
ca0633c808
6 changed files with 106 additions and 30 deletions
|
@ -144,8 +144,8 @@ impl LangItems {
|
|||
let _p = profile::span("lang_item_query");
|
||||
let lang_items = db.crate_lang_items(start_crate);
|
||||
let start_crate_target = lang_items.items.get(&item);
|
||||
if let Some(target) = start_crate_target {
|
||||
return Some(*target);
|
||||
if let Some(&target) = start_crate_target {
|
||||
return Some(target);
|
||||
}
|
||||
db.crate_graph()[start_crate]
|
||||
.dependencies
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue