Run the formatter

This commit is contained in:
Tobin C. Harding 2025-04-17 11:43:02 +10:00
parent 94abc99fb0
commit 4b733d4dad
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
4 changed files with 4 additions and 7 deletions

View File

@ -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]);

View File

@ -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

View File

@ -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.
/// ///