mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
fix
This commit is contained in:
parent
ba40aa72ac
commit
6001e7dfb1
1 changed files with 0 additions and 6 deletions
|
@ -124,12 +124,6 @@ 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) => !matches!(x.kind(), USE),
|
syntax::NodeOrToken::Node(x) => !matches!(x.kind(), USE),
|
||||||
if matches!(x.kind(), USE) {
|
|
||||||
false
|
|
||||||
} else {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
syntax::NodeOrToken::Token(_) => true,
|
syntax::NodeOrToken::Token(_) => true,
|
||||||
};
|
};
|
||||||
res
|
res
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue