diff --git a/units/src/fee_rate.rs b/units/src/fee_rate.rs index d6b4c33cb..b605b14b1 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) -> ::Output { FeeRate(self.0 + other.0) } + fn add(self, other: FeeRate) -> Self::Output { FeeRate(self.0 + other.0) } } impl Add<&FeeRate> for FeeRate { type Output = FeeRate; - fn add(self, other: &FeeRate) -> ::Output { FeeRate(self.0 + other.0) } + fn add(self, other: &FeeRate) -> Self::Output { FeeRate(self.0 + other.0) } } impl<'a> Add<&'a FeeRate> for &FeeRate { type Output = FeeRate; - fn add(self, other: &'a FeeRate) -> ::Output { FeeRate(self.0 + other.0) } + fn add(self, other: &'a FeeRate) -> Self::Output { FeeRate(self.0 + other.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) -> ::Output { FeeRate(self.0 - other.0) } + fn sub(self, other: FeeRate) -> Self::Output { FeeRate(self.0 - other.0) } } impl Sub<&FeeRate> for FeeRate { type Output = FeeRate; - fn sub(self, other: &FeeRate) -> ::Output { FeeRate(self.0 - other.0) } + fn sub(self, other: &FeeRate) -> Self::Output { FeeRate(self.0 - other.0) } } impl<'a> Sub<&'a FeeRate> for &FeeRate { type Output = FeeRate; - fn sub(self, other: &'a FeeRate) -> ::Output { FeeRate(self.0 - other.0) } + fn sub(self, other: &'a FeeRate) -> Self::Output { FeeRate(self.0 - other.0) } } /// Computes the ceiling so that the fee computation is conservative.