Skip to content

Commit

Permalink
Merge branch 'master' into sync-from-rust
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Dec 12, 2023
2 parents be035e8 + 457b966 commit df7b428
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/hir-def/src/import_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ fn collect_import_map(db: &dyn DefDatabase, krate: CrateId) -> ImportMapIndex {

let visible_items = mod_data.scope.entries().filter_map(|(name, per_ns)| {
let per_ns = per_ns.filter_visibility(|vis| vis == Visibility::Public);
if per_ns.is_none() { None } else { Some((name, per_ns)) }
if per_ns.is_none() {
None
} else {
Some((name, per_ns))
}
});

for (name, per_ns) in visible_items {
Expand Down

0 comments on commit df7b428

Please sign in to comment.