@@ -83,10 +83,7 @@ pub use crate::signing::SigningKey;
83
83
#[ cfg( feature = "verifying" ) ]
84
84
pub use crate :: verifying:: VerifyingKey ;
85
85
86
- use core:: {
87
- fmt:: { self , Debug } ,
88
- ops:: Add ,
89
- } ;
86
+ use core:: { fmt, ops:: Add } ;
90
87
use elliptic_curve:: {
91
88
generic_array:: { sequence:: Concat , typenum:: Unsigned , ArrayLength , GenericArray } ,
92
89
FieldBytes , FieldBytesSize , ScalarPrimitive ,
@@ -321,22 +318,6 @@ where
321
318
{
322
319
}
323
320
324
- impl < C > Debug for Signature < C >
325
- where
326
- C : PrimeCurve ,
327
- SignatureSize < C > : ArrayLength < u8 > ,
328
- {
329
- fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
330
- write ! ( f, "ecdsa::Signature<{:?}>(" , C :: default ( ) ) ?;
331
-
332
- for byte in self . to_bytes ( ) {
333
- write ! ( f, "{:02X}" , byte) ?;
334
- }
335
-
336
- write ! ( f, ")" )
337
- }
338
- }
339
-
340
321
impl < C > From < Signature < C > > for SignatureBytes < C >
341
322
where
342
323
C : PrimeCurve ,
@@ -367,6 +348,22 @@ where
367
348
}
368
349
}
369
350
351
+ impl < C > fmt:: Debug for Signature < C >
352
+ where
353
+ C : PrimeCurve ,
354
+ SignatureSize < C > : ArrayLength < u8 > ,
355
+ {
356
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
357
+ write ! ( f, "ecdsa::Signature<{:?}>(" , C :: default ( ) ) ?;
358
+
359
+ for byte in self . to_bytes ( ) {
360
+ write ! ( f, "{:02X}" , byte) ?;
361
+ }
362
+
363
+ write ! ( f, ")" )
364
+ }
365
+ }
366
+
370
367
impl < C > fmt:: Display for Signature < C >
371
368
where
372
369
C : PrimeCurve ,
0 commit comments