Skip to content

Commit

Permalink
Switch to option or
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Aug 29, 2023
1 parent 938c6bc commit fc621cc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,8 @@ impl EGraph {
let run_report = self.run_report.clone();
let messages = self.msgs.clone();
*self = e;
if let Some(report) = extract_report {
self.extract_report = Some(report);
}
if let Some(report) = run_report {
self.run_report = Some(report);
}
self.extract_report = extract_report.or(self.extract_report.clone());
self.run_report = run_report.or(self.run_report.clone());
self.msgs.extend(messages);
Ok(())
}
Expand Down

0 comments on commit fc621cc

Please sign in to comment.