diff --git a/units/src/fee.rs b/units/src/fee.rs index 281f1758c..615c57bc7 100644 --- a/units/src/fee.rs +++ b/units/src/fee.rs @@ -118,7 +118,7 @@ impl FeeRate { /// [`NumOpResult::Error`] if an overflow occurred. /// /// This is equivalent to `Self::checked_mul_by_weight()`. - pub fn to_fee(self, weight: Weight) -> NumOpResult { + pub const fn to_fee(self, weight: Weight) -> NumOpResult { self.checked_mul_by_weight(weight) }