Run the formatter
This commit is contained in:
parent
41f26cf090
commit
b38d2256fd
|
@ -14,9 +14,8 @@
|
||||||
use core::ops;
|
use core::ops;
|
||||||
|
|
||||||
use NumOpResult as R;
|
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 {
|
impl Amount {
|
||||||
/// Checked weight ceiling division.
|
/// Checked weight ceiling division.
|
||||||
|
@ -119,7 +118,9 @@ impl FeeRate {
|
||||||
/// [`NumOpResult::Error`] if an overflow occurred.
|
/// [`NumOpResult::Error`] if an overflow occurred.
|
||||||
///
|
///
|
||||||
/// This is equivalent to `Self::checked_mul_by_weight()`.
|
/// 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`]
|
/// Calculates the fee by multiplying this fee rate by weight, in weight units, returning [`None`]
|
||||||
/// if an overflow occurred.
|
/// if an overflow occurred.
|
||||||
|
|
Loading…
Reference in New Issue