Skip to content

Commit

Permalink
panic test
Browse files Browse the repository at this point in the history
  • Loading branch information
yancyribbens committed Feb 2, 2024
1 parent 16b4f41 commit db7365a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions units/src/amount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,7 @@ impl ops::Add for Amount {
type Output = Amount;

fn add(self, rhs: Amount) -> Self::Output {
panic!();
self.checked_add(rhs).expect("Amount addition error")
}
}
Expand Down

0 comments on commit db7365a

Please sign in to comment.