Skip to content

Commit

Permalink
chore: Rename error2 variable (#3584)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray authored Nov 27, 2023
1 parent 9bb853b commit a0eab0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/noirc_frontend/src/hir/def_collector/dc_mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,11 +528,11 @@ impl<'a> ModCollector<'a> {
};
errors.push((error.into(), location.file));

let error2 = DefCollectorErrorKind::ModuleOriginallyDefined {
let error = DefCollectorErrorKind::ModuleOriginallyDefined {
mod_name: mod_name.clone(),
span: old_location.span,
};
errors.push((error2.into(), old_location.file));
errors.push((error.into(), old_location.file));
return errors;
}

Expand Down

0 comments on commit a0eab0c

Please sign in to comment.