File tree Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 2020 - uses : actions/checkout@v4
2121 - uses : dtolnay/rust-toolchain@master
2222 with :
23- toolchain : 1.85 .0
23+ toolchain : 1.88 .0
2424 components : clippy
2525 - run : cargo clippy --all --all-features -- -D warnings
2626
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ impl Debug for Signature {
166166 write ! ( f, "bignp256::dsa::Signature(" ) ?;
167167
168168 for byte in self . to_bytes ( ) {
169- write ! ( f, "{:02X}" , byte ) ?;
169+ write ! ( f, "{byte :02X}" ) ?;
170170 }
171171
172172 write ! ( f, ")" )
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ impl elliptic_curve::zeroize::Zeroize for CompressedEdwardsY {
4242impl Display for CompressedEdwardsY {
4343 fn fmt ( & self , f : & mut Formatter < ' _ > ) -> FmtResult {
4444 for b in & self . 0 [ ..] {
45- write ! ( f, "{:02x}" , b ) ?;
45+ write ! ( f, "{b :02x}" ) ?;
4646 }
4747 Ok ( ( ) )
4848 }
@@ -51,7 +51,7 @@ impl Display for CompressedEdwardsY {
5151impl LowerHex for CompressedEdwardsY {
5252 fn fmt ( & self , f : & mut Formatter < ' _ > ) -> FmtResult {
5353 for b in & self . 0 [ ..] {
54- write ! ( f, "{:02x}" , b ) ?;
54+ write ! ( f, "{b :02x}" ) ?;
5555 }
5656 Ok ( ( ) )
5757 }
@@ -60,7 +60,7 @@ impl LowerHex for CompressedEdwardsY {
6060impl UpperHex for CompressedEdwardsY {
6161 fn fmt ( & self , f : & mut Formatter < ' _ > ) -> FmtResult {
6262 for b in & self . 0 [ ..] {
63- write ! ( f, "{:02X}" , b ) ?;
63+ write ! ( f, "{b :02X}" ) ?;
6464 }
6565 Ok ( ( ) )
6666 }
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ impl<C: CurveWithScalar> Display for Scalar<C> {
9494 fn fmt ( & self , f : & mut Formatter < ' _ > ) -> FmtResult {
9595 let bytes = self . to_repr ( ) ;
9696 for b in & bytes {
97- write ! ( f, "{:02x}" , b ) ?;
97+ write ! ( f, "{b :02x}" ) ?;
9898 }
9999 Ok ( ( ) )
100100 }
@@ -454,7 +454,7 @@ impl<C: CurveWithScalar> core::fmt::LowerHex for Scalar<C> {
454454 fn fmt ( & self , f : & mut Formatter < ' _ > ) -> core:: fmt:: Result {
455455 let tmp = C :: to_repr ( self ) ;
456456 for & b in tmp. iter ( ) {
457- write ! ( f, "{:02x}" , b ) ?;
457+ write ! ( f, "{b :02x}" ) ?;
458458 }
459459 Ok ( ( ) )
460460 }
@@ -464,7 +464,7 @@ impl<C: CurveWithScalar> core::fmt::UpperHex for Scalar<C> {
464464 fn fmt ( & self , f : & mut Formatter < ' _ > ) -> core:: fmt:: Result {
465465 let tmp = C :: to_repr ( self ) ;
466466 for & b in tmp. iter ( ) {
467- write ! ( f, "{:02X}" , b ) ?;
467+ write ! ( f, "{b :02X}" ) ?;
468468 }
469469 Ok ( ( ) )
470470 }
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ impl Debug for Signature {
150150 write ! ( f, "sm2::dsa::Signature(" ) ?;
151151
152152 for byte in self . to_bytes ( ) {
153- write ! ( f, "{:02X}" , byte ) ?;
153+ write ! ( f, "{byte :02X}" ) ?;
154154 }
155155
156156 write ! ( f, ")" )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ fn create_test_signing_key() -> SigningKey {
1818 let test_key = [ 42u8 ; 32 ] ;
1919 let scalar = <Scalar as Reduce < U256 > >:: reduce_bytes ( & test_key. into ( ) ) ;
2020 let scalar = NonZeroScalar :: new ( scalar) . unwrap ( ) ;
21- SigningKey :: from_nonzero_scalar ( IDENTITY . into ( ) , scalar) . unwrap ( )
21+ SigningKey :: from_nonzero_scalar ( IDENTITY , scalar) . unwrap ( )
2222}
2323
2424#[ test]
Original file line number Diff line number Diff line change @@ -148,5 +148,5 @@ fn test_x509() {
148148 let secret_key = PKCS8_PRIVATE_KEY_PEM . parse :: < sm2:: SecretKey > ( ) . unwrap ( ) ;
149149 const IDENTITY : & str = "example@rustcrypto.org" ;
150150 let signing_key = SigningKey :: new ( IDENTITY , & secret_key) . unwrap ( ) ;
151- let _signature = dummy_cert_builder :: < _ , Signature > ( & signing_key) ;
151+ dummy_cert_builder :: < _ , Signature > ( & signing_key) ;
152152}
You can’t perform that action at this time.
0 commit comments