mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Update crates/ide/src/references.rs
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
This commit is contained in:
parent
29729abc3c
commit
ba40aa72ac
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ fn retain_import_usages(usages: &mut UsageSearchResult, sema: &Semantics<'_, Roo
|
||||||
|
|
||||||
if let Some(node) = maybe_node {
|
if let Some(node) = maybe_node {
|
||||||
let res = match node {
|
let res = match node {
|
||||||
syntax::NodeOrToken::Node(x) => {
|
syntax::NodeOrToken::Node(x) => !matches!(x.kind(), USE),
|
||||||
if matches!(x.kind(), USE) {
|
if matches!(x.kind(), USE) {
|
||||||
false
|
false
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue