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