Skip to content

Commit

Permalink
fixups for rust-1.78 (#537)
Browse files Browse the repository at this point in the history
Rustc 1.78 introduced new `unnecessary qualification` warnings.
  • Loading branch information
baloo authored May 13, 2024
1 parent a3d8cb5 commit 0d8b1c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/algorithm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ impl From<asymmetric::Algorithm> for Algorithm {

impl From<authentication::Algorithm> for Algorithm {
fn from(alg: authentication::Algorithm) -> Algorithm {
crate::Algorithm::Authentication(alg)
Algorithm::Authentication(alg)
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/ecdsa/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ where
C: CurveAlgorithm + CurveArithmetic + PointCompression + PrimeCurve,
FieldBytesSize<C>: sec1::ModulusSize,
SignatureSize<C>: ArrayLength<u8>,
ecdsa::der::MaxSize<C>: ArrayLength<u8>,
<FieldBytesSize<C> as Add>::Output: Add<ecdsa::der::MaxOverhead> + ArrayLength<u8>,
der::MaxSize<C>: ArrayLength<u8>,
<FieldBytesSize<C> as Add>::Output: Add<der::MaxOverhead> + ArrayLength<u8>,
{
fn sign_prehash_ecdsa(&self, prehash: &[u8]) -> Result<Signature<C>, Error> {
self.client
Expand Down Expand Up @@ -206,8 +206,8 @@ where
C: CurveAlgorithm + CurveArithmetic + PointCompression + PrimeCurve + DigestPrimitive,
AffinePoint<C>: FromEncodedPoint<C> + ToEncodedPoint<C>,
FieldBytesSize<C>: sec1::ModulusSize,
ecdsa::der::MaxSize<C>: ArrayLength<u8>,
<FieldBytesSize<C> as Add>::Output: Add<ecdsa::der::MaxOverhead> + ArrayLength<u8>,
der::MaxSize<C>: ArrayLength<u8>,
<FieldBytesSize<C> as Add>::Output: Add<der::MaxOverhead> + ArrayLength<u8>,
Self: DigestSigner<C::Digest, Signature<C>>,
{
fn try_sign_digest(&self, digest: C::Digest) -> Result<der::Signature<C>, Error> {
Expand Down

0 comments on commit 0d8b1c9

Please sign in to comment.