Skip to content

Commit

Permalink
misc: renamed ModCollector to ModCollectorContext
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Nov 2, 2020
1 parent 56530c0 commit 474f0bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/mun_hir/src/package_defs/collector.rs
Expand Up @@ -49,7 +49,7 @@ impl<'db> DefCollector<'db> {
let module_data = &collector.module_tree[module_id];
if let Some(file_id) = module_data.file {
let item_tree = collector.db.item_tree(file_id);
let mut mod_collector = ModCollector {
let mut mod_collector = ModCollectorContext {
def_collector: collector,
module_id,
file_id,
Expand Down Expand Up @@ -99,14 +99,14 @@ impl<'db> DefCollector<'db> {
}

/// Collects all items from a module
struct ModCollector<'a, 'db> {
struct ModCollectorContext<'a, 'db> {
def_collector: &'a mut DefCollector<'db>,
module_id: LocalModuleId,
file_id: FileId,
item_tree: &'a ItemTree,
}

impl<'a> ModCollector<'a, '_> {
impl<'a> ModCollectorContext<'a, '_> {
fn collect(&mut self, items: &[ModItem]) {
for &item in items {
let definition = match item {
Expand Down

0 comments on commit 474f0bb

Please sign in to comment.