File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -435,14 +435,20 @@ impl<'a> Arbitrary<'a> for HeaderAndShortIds {
435435#[ cfg( feature = "arbitrary" ) ]
436436impl < ' 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" ) ]
443446impl < ' 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
Original file line number Diff line number Diff line change 66//! <https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki>.
77
88use core:: fmt;
9+
910#[ cfg( feature = "arbitrary" ) ]
1011use arbitrary:: { Arbitrary , Unstructured } ;
11-
1212use internals:: ToU64 as _;
1313use 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}
You can’t perform that action at this time.
0 commit comments