From 60b033b5e1ff2926da515ccc2d0c93253d9d4053 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Fri, 10 May 2024 10:43:54 -0700 Subject: [PATCH] fixups for rust-1.78 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> {