Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
yancyribbens committed Feb 2, 2024
1 parent 16b4f41 commit bcfad5e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions units/src/amount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -896,13 +896,13 @@ impl fmt::Display for Amount {
}
}

impl ops::Add for Amount {
type Output = Amount;
//impl ops::Add for Amount {
//type Output = Amount;

fn add(self, rhs: Amount) -> Self::Output {
self.checked_add(rhs).expect("Amount addition error")
}
}
//fn add(self, rhs: Amount) -> Self::Output {
//self.checked_add(rhs).expect("Amount addition error")
//}
//}

impl ops::AddAssign for Amount {
fn add_assign(&mut self, other: Amount) { *self = *self + other }
Expand Down

0 comments on commit bcfad5e

Please sign in to comment.