From 0d8b1c91205b727096030d2a1e3f67e36e8618b9 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Mon, 13 May 2024 13:31:36 +0000 Subject: [PATCH] fixups for rust-1.78 (#537) Rustc 1.78 introduced new `unnecessary qualification` warnings. --- src/algorithm.rs | 2 +- src/ecdsa/signer.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/algorithm.rs b/src/algorithm.rs index 84907ab8..a901a71f 100644 --- a/src/algorithm.rs +++ b/src/algorithm.rs @@ -185,7 +185,7 @@ impl From for Algorithm { impl From for Algorithm { fn from(alg: authentication::Algorithm) -> Algorithm { - crate::Algorithm::Authentication(alg) + Algorithm::Authentication(alg) } } diff --git a/src/ecdsa/signer.rs b/src/ecdsa/signer.rs index 1a18648b..e1f23c2f 100644 --- a/src/ecdsa/signer.rs +++ b/src/ecdsa/signer.rs @@ -80,8 +80,8 @@ where C: CurveAlgorithm + CurveArithmetic + PointCompression + PrimeCurve, FieldBytesSize: sec1::ModulusSize, SignatureSize: ArrayLength, - ecdsa::der::MaxSize: ArrayLength, - as Add>::Output: Add + ArrayLength, + der::MaxSize: ArrayLength, + as Add>::Output: Add + ArrayLength, { fn sign_prehash_ecdsa(&self, prehash: &[u8]) -> Result, Error> { self.client @@ -206,8 +206,8 @@ where C: CurveAlgorithm + CurveArithmetic + PointCompression + PrimeCurve + DigestPrimitive, AffinePoint: FromEncodedPoint + ToEncodedPoint, FieldBytesSize: sec1::ModulusSize, - ecdsa::der::MaxSize: ArrayLength, - as Add>::Output: Add + ArrayLength, + der::MaxSize: ArrayLength, + as Add>::Output: Add + ArrayLength, Self: DigestSigner>, { fn try_sign_digest(&self, digest: C::Digest) -> Result, Error> {