File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ impl PrivateKey {
4141
4242impl fmt:: Display for PrivateKey {
4343 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
44- write ! ( f, "{}" , hex:: encode( & self . as_bytes( ) ) )
44+ write ! ( f, "{}" , hex:: encode( self . as_bytes( ) ) )
4545 }
4646}
4747
@@ -122,7 +122,7 @@ pub mod serde_compressed_edwards {
122122 . ok_or_else ( || serde:: de:: Error :: invalid_length ( i, & "expected 32 bytes" ) ) ?;
123123 }
124124 Ok ( PublicKey :: from_slice ( & bytes)
125- . map_err ( |e| serde:: de:: Error :: custom ( e ) ) ?
125+ . map_err ( serde:: de:: Error :: custom) ?
126126 . point )
127127 }
128128 }
@@ -200,7 +200,7 @@ impl From<curve25519_dalek_ng::edwards::CompressedEdwardsY> for PublicKey {
200200
201201impl fmt:: Display for PublicKey {
202202 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
203- write ! ( f, "{}" , hex:: encode( & self . as_bytes( ) ) )
203+ write ! ( f, "{}" , hex:: encode( self . as_bytes( ) ) )
204204 }
205205}
206206
You can’t perform that action at this time.
0 commit comments