File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ fn agreement_traits() {
3838 test:: compile_time_assert_sync :: < agreement:: EphemeralPrivateKey > ( ) ;
3939
4040 assert_eq ! (
41- format!( "{:?}" , & private_key) ,
41+ format!( "{:?}" , private_key) ,
4242 "EphemeralPrivateKey { algorithm: Algorithm { curve: P256 } }"
4343 ) ;
4444
Original file line number Diff line number Diff line change @@ -104,8 +104,8 @@ fn hmac_test_case_inner(
104104#[ test]
105105fn hmac_debug ( ) {
106106 let key = hmac:: Key :: new ( hmac:: HMAC_SHA256 , & [ 0 ; 32 ] ) ;
107- assert_eq ! ( "Key { algorithm: SHA256 }" , format!( "{:?}" , & key) ) ;
107+ assert_eq ! ( "Key { algorithm: SHA256 }" , format!( "{:?}" , key) ) ;
108108
109109 let ctx = hmac:: Context :: with_key ( & key) ;
110- assert_eq ! ( "Context { algorithm: SHA256 }" , format!( "{:?}" , & ctx) ) ;
110+ assert_eq ! ( "Context { algorithm: SHA256 }" , format!( "{:?}" , ctx) ) ;
111111}
You can’t perform that action at this time.
0 commit comments