Skip to content

Commit 9936a84

Browse files
Fmt Botgithub-actions[bot]
authored andcommitted
2025-08-03 automated rustfmt nightly
1 parent 33c06c5 commit 9936a84

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

bitcoin/src/bip152.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,14 +435,20 @@ impl<'a> Arbitrary<'a> for HeaderAndShortIds {
435435
#[cfg(feature = "arbitrary")]
436436
impl<'a> Arbitrary<'a> for BlockTransactions {
437437
fn arbitrary(u: &mut Unstructured<'a>) -> arbitrary::Result<Self> {
438-
Ok(BlockTransactions { block_hash: u.arbitrary()?, transactions: Vec::<Transaction>::arbitrary(u)? })
438+
Ok(BlockTransactions {
439+
block_hash: u.arbitrary()?,
440+
transactions: Vec::<Transaction>::arbitrary(u)?,
441+
})
439442
}
440443
}
441444

442445
#[cfg(feature = "arbitrary")]
443446
impl<'a> Arbitrary<'a> for BlockTransactionsRequest {
444447
fn arbitrary(u: &mut Unstructured<'a>) -> arbitrary::Result<Self> {
445-
Ok(BlockTransactionsRequest { block_hash: u.arbitrary()?, indexes: Vec::<u64>::arbitrary(u)? })
448+
Ok(BlockTransactionsRequest {
449+
block_hash: u.arbitrary()?,
450+
indexes: Vec::<u64>::arbitrary(u)?,
451+
})
446452
}
447453
}
448454

bitcoin/src/psbt/raw.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
//! <https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki>.
77
88
use core::fmt;
9+
910
#[cfg(feature = "arbitrary")]
1011
use arbitrary::{Arbitrary, Unstructured};
11-
1212
use internals::ToU64 as _;
1313
use io::{BufRead, Write};
1414

@@ -197,7 +197,7 @@ impl<'a> Arbitrary<'a> for ProprietaryKey {
197197
Ok(ProprietaryKey {
198198
prefix: Vec::<u8>::arbitrary(u)?,
199199
subtype: u64::arbitrary(u)?,
200-
key: Vec::<u8>::arbitrary(u)?
200+
key: Vec::<u8>::arbitrary(u)?,
201201
})
202202
}
203203
}

0 commit comments

Comments
 (0)