diff --git a/units/src/amount/signed.rs b/units/src/amount/signed.rs index 4ee898d2c..0f548ccdc 100644 --- a/units/src/amount/signed.rs +++ b/units/src/amount/signed.rs @@ -390,7 +390,7 @@ impl ops::Add for SignedAmount { } impl ops::AddAssign for SignedAmount { - fn add_assign(&mut self, other: SignedAmount) { *self = *self + other } + fn add_assign(&mut self, rhs: SignedAmount) { *self = *self + rhs } } impl ops::Sub for SignedAmount { @@ -402,7 +402,7 @@ impl ops::Sub for SignedAmount { } impl ops::SubAssign for SignedAmount { - fn sub_assign(&mut self, other: SignedAmount) { *self = *self - other } + fn sub_assign(&mut self, rhs: SignedAmount) { *self = *self - rhs } } impl ops::Rem for SignedAmount { diff --git a/units/src/amount/unsigned.rs b/units/src/amount/unsigned.rs index 6bd45f14b..5d31bb055 100644 --- a/units/src/amount/unsigned.rs +++ b/units/src/amount/unsigned.rs @@ -459,7 +459,7 @@ impl ops::Add for Amount { } impl ops::AddAssign for Amount { - fn add_assign(&mut self, other: Amount) { *self = *self + other } + fn add_assign(&mut self, rhs: Amount) { *self = *self + rhs } } impl ops::Sub for Amount { @@ -471,7 +471,7 @@ impl ops::Sub for Amount { } impl ops::SubAssign for Amount { - fn sub_assign(&mut self, other: Amount) { *self = *self - other } + fn sub_assign(&mut self, rhs: Amount) { *self = *self - rhs } } impl ops::Rem for Amount { diff --git a/units/src/fee_rate.rs b/units/src/fee_rate.rs index b605b14b1..65fd58e77 100644 --- a/units/src/fee_rate.rs +++ b/units/src/fee_rate.rs @@ -194,19 +194,19 @@ impl Add for FeeRate { impl Add for &FeeRate { type Output = FeeRate; - fn add(self, other: FeeRate) -> Self::Output { FeeRate(self.0 + other.0) } + fn add(self, rhs: FeeRate) -> Self::Output { FeeRate(self.0 + rhs.0) } } impl Add<&FeeRate> for FeeRate { type Output = FeeRate; - fn add(self, other: &FeeRate) -> Self::Output { FeeRate(self.0 + other.0) } + fn add(self, rhs: &FeeRate) -> Self::Output { FeeRate(self.0 + rhs.0) } } impl<'a> Add<&'a FeeRate> for &FeeRate { type Output = FeeRate; - fn add(self, other: &'a FeeRate) -> Self::Output { FeeRate(self.0 + other.0) } + fn add(self, rhs: &'a FeeRate) -> Self::Output { FeeRate(self.0 + rhs.0) } } impl Sub for FeeRate { @@ -218,19 +218,19 @@ impl Sub for FeeRate { impl Sub for &FeeRate { type Output = FeeRate; - fn sub(self, other: FeeRate) -> Self::Output { FeeRate(self.0 - other.0) } + fn sub(self, rhs: FeeRate) -> Self::Output { FeeRate(self.0 - rhs.0) } } impl Sub<&FeeRate> for FeeRate { type Output = FeeRate; - fn sub(self, other: &FeeRate) -> Self::Output { FeeRate(self.0 - other.0) } + fn sub(self, rhs: &FeeRate) -> Self::Output { FeeRate(self.0 - rhs.0) } } impl<'a> Sub<&'a FeeRate> for &FeeRate { type Output = FeeRate; - fn sub(self, other: &'a FeeRate) -> Self::Output { FeeRate(self.0 - other.0) } + fn sub(self, rhs: &'a FeeRate) -> Self::Output { FeeRate(self.0 - rhs.0) } } /// Computes the ceiling so that the fee computation is conservative.