mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +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
@ -123,7 +123,7 @@ fn retain_import_usages(usages: &mut UsageSearchResult, sema: &Semantics<'_, Roo
|
||||
|
||||
if let Some(node) = maybe_node {
|
||||
let res = match node {
|
||||
syntax::NodeOrToken::Node(x) => {
|
||||
syntax::NodeOrToken::Node(x) => !matches!(x.kind(), USE),
|
||||
if matches!(x.kind(), USE) {
|
||||
false
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user