Run the formatter
This commit is contained in:
parent
94abc99fb0
commit
4b733d4dad
|
@ -752,7 +752,6 @@ mod tests {
|
|||
assert!(WScriptHash::try_from(&script).is_err());
|
||||
}
|
||||
|
||||
|
||||
#[test]
|
||||
fn try_from_script_for_wscript_hash() {
|
||||
let script = Script::from_bytes(&[0x51; 10_000]);
|
||||
|
|
|
@ -604,9 +604,7 @@ impl<T> CheckedSum<Amount> for T
|
|||
where
|
||||
T: Iterator<Item = Amount>,
|
||||
{
|
||||
fn checked_sum(mut self) -> Option<Amount> {
|
||||
self.try_fold(Amount::ZERO, Amount::checked_add)
|
||||
}
|
||||
fn checked_sum(mut self) -> Option<Amount> { self.try_fold(Amount::ZERO, Amount::checked_add) }
|
||||
}
|
||||
|
||||
impl<T> CheckedSum<SignedAmount> for T
|
||||
|
|
|
@ -13,10 +13,10 @@
|
|||
|
||||
use core::ops;
|
||||
|
||||
use crate::{Amount, FeeRate, MathOp, NumOpResult, OptionExt, Weight};
|
||||
|
||||
use NumOpResult as R;
|
||||
|
||||
use crate::{Amount, FeeRate, MathOp, NumOpResult, OptionExt, Weight};
|
||||
|
||||
impl Amount {
|
||||
/// Checked weight ceiling division.
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue