Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ba40aa7

Browse files
enomadolnicola
andauthored
Update crates/ide/src/references.rs
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
1 parent 29729ab commit ba40aa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ide/src/references.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ fn retain_import_usages(usages: &mut UsageSearchResult, sema: &Semantics<'_, Roo
123123

124124
if let Some(node) = maybe_node {
125125
let res = match node {
126-
syntax::NodeOrToken::Node(x) => {
126+
syntax::NodeOrToken::Node(x) => !matches!(x.kind(), USE),
127127
if matches!(x.kind(), USE) {
128128
false
129129
} else {

0 commit comments

Comments
 (0)