This commit is contained in:
Stanislav 2022-09-04 19:45:50 +03:00
parent ba40aa72ac
commit 6001e7dfb1

View File

@ -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