This commit is contained in:
Stanislav 2022-09-09 20:58:06 +03:00
parent 773f9b38e3
commit f7f4792f4f
4 changed files with 14 additions and 17 deletions

View file

@ -118,8 +118,6 @@ pub(crate) fn find_all_refs(
}
fn filter_import_references(usages: &mut UsageSearchResult) {
// todo use this https://github.com/rust-lang/rust-analyzer/blob/master/crates/rust-analyzer/src/config.rs#L432
for (_file_id, refs) in &mut usages.references {
refs.retain(|it| match it.name.as_name_ref() {
Some(name_ref) => {