Skip to content

Commit

Permalink
the new reported errors are also merged.
Browse files Browse the repository at this point in the history
  • Loading branch information
stela2502 committed Oct 24, 2024
1 parent e7ee04a commit e86e9d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mapping_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,14 @@ impl MappingInfo{
*self.reads_log.entry(name.to_string()).or_insert(0) += value;
}
self.analyzed = self.total;
for (error_type, count) in &other.error_counts {
// For each error type in `other`, increment the value in `self`
*self.error_counts.entry(error_type.clone()).or_insert(0) += count;
}
}



pub fn write_to_log ( &mut self, text:String ){

match &mut self.log_writer{
Expand Down

0 comments on commit e86e9d8

Please sign in to comment.