Run the formatter

This commit is contained in:
Tobin C. Harding 2025-05-08 09:46:52 +10:00
parent 41f26cf090
commit b38d2256fd
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 5 additions and 4 deletions

View File

@ -14,9 +14,8 @@
use core::ops;
use NumOpResult as R;
use crate::NumOpError as E;
use crate::{Amount, FeeRate, MathOp, NumOpResult, OptionExt, Weight};
use crate::{Amount, FeeRate, MathOp, NumOpError as E, NumOpResult, OptionExt, Weight};
impl Amount {
/// Checked weight ceiling division.
@ -119,7 +118,9 @@ 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<Amount> { self.checked_mul_by_weight(weight) }
pub fn to_fee(self, weight: Weight) -> NumOpResult<Amount> {
self.checked_mul_by_weight(weight)
}
/// Calculates the fee by multiplying this fee rate by weight, in weight units, returning [`None`]
/// if an overflow occurred.