mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
fix
This commit is contained in:
parent
ba40aa72ac
commit
6001e7dfb1
@ -124,12 +124,6 @@ fn retain_import_usages(usages: &mut UsageSearchResult, sema: &Semantics<'_, Roo
|
||||
if let Some(node) = maybe_node {
|
||||
let res = match node {
|
||||
syntax::NodeOrToken::Node(x) => !matches!(x.kind(), USE),
|
||||
if matches!(x.kind(), USE) {
|
||||
false
|
||||
} else {
|
||||
true
|
||||
}
|
||||
}
|
||||
syntax::NodeOrToken::Token(_) => true,
|
||||
};
|
||||
res
|
||||
|
Loading…
Reference in New Issue
Block a user