File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2033,10 +2033,10 @@ mod tests {
2033
2033
2034
2034
let json = "{\" amt\" : 21000000.00000001, \
2035
2035
\" samt\" : -21000000.00000001}";
2036
- let t: T = serde_json:: from_str ( & json) . unwrap ( ) ;
2036
+ let t: T = serde_json:: from_str ( json) . unwrap ( ) ;
2037
2037
assert_eq ! ( t, orig) ;
2038
2038
2039
- let value: serde_json:: Value = serde_json:: from_str ( & json) . unwrap ( ) ;
2039
+ let value: serde_json:: Value = serde_json:: from_str ( json) . unwrap ( ) ;
2040
2040
assert_eq ! ( t, serde_json:: from_value( value) . unwrap( ) ) ;
2041
2041
2042
2042
// errors
Original file line number Diff line number Diff line change @@ -638,7 +638,7 @@ mod tests {
638
638
] ;
639
639
640
640
let s = Secp256k1 :: new ( ) ;
641
- let sk = PrivateKey :: from_str ( & KEY_WIF ) . unwrap ( ) ;
641
+ let sk = PrivateKey :: from_str ( KEY_WIF ) . unwrap ( ) ;
642
642
let pk = PublicKey :: from_private_key ( & s, & sk) ;
643
643
let pk_u = PublicKey {
644
644
inner : pk. inner ,
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ mod tests {
317
317
318
318
let secp = secp256k1:: Secp256k1 :: new ( ) ;
319
319
let message = "rust-bitcoin MessageSignature test" ;
320
- let msg_hash = super :: signed_msg_hash ( & message) ;
320
+ let msg_hash = super :: signed_msg_hash ( message) ;
321
321
let msg = secp256k1:: Message :: from ( msg_hash) ;
322
322
323
323
@@ -357,7 +357,7 @@ mod tests {
357
357
358
358
let secp = secp256k1:: Secp256k1 :: new ( ) ;
359
359
let message = "a different message from what was signed" ;
360
- let msg_hash = super :: signed_msg_hash ( & message) ;
360
+ let msg_hash = super :: signed_msg_hash ( message) ;
361
361
362
362
// Signature of msg = "rust-bitcoin MessageSignature test"
363
363
// Signed with pk "UuOGDsfLPr4HIMKQX0ipjJeRaj1geCq3yPUF2COP5ME="
You can’t perform that action at this time.
0 commit comments