File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1163,7 +1163,7 @@ mod tests {
1163
1163
let after = no_checks_ms ( & format ! ( "after({})" , 1000 ) ) ;
1164
1164
let older = no_checks_ms ( & format ! ( "older({})" , 1000 ) ) ;
1165
1165
//Hashes
1166
- let preimage = [ 0xab as u8 ; 32 ] ;
1166
+ let preimage = [ 0xab ; 32 ] ;
1167
1167
let sha256_hash = sha256:: Hash :: hash ( & preimage) ;
1168
1168
let sha256 = no_checks_ms ( & format ! ( "sha256({})" , sha256_hash) ) ;
1169
1169
let hash256_hash = hash256:: Hash :: hash ( & preimage) ;
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ pub mod test {
272
272
. map ( |pk| hash160:: Hash :: hash ( & pk. to_bytes ( ) ) )
273
273
. collect ( ) ;
274
274
275
- let preimage = vec ! [ 0xab as u8 ; 32 ] ;
275
+ let preimage = vec ! [ 0xab ; 32 ] ;
276
276
let sha256_hash = sha256:: Hash :: hash ( & preimage) ;
277
277
let sha256d_hash_rev = sha256d:: Hash :: hash ( & preimage) ;
278
278
let mut sha256d_hash_bytes = sha256d_hash_rev. into_inner ( ) ;
You can’t perform that action at this time.
0 commit comments