clippy fixes (#585)

Runs `cargo clippy --fix` against both crates in the repo
(including `cli`)
This commit is contained in:
Tony Arcieri (iqlusion)
2025-01-02 12:55:36 -07:00
committed by GitHub
parent 626ac3bffd
commit d204051912
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -455,20 +455,20 @@ pub mod yubikey_signer {
}
}
impl<'y, KT: KeyType> Keypair for Signer<'y, KT> {
impl<KT: KeyType> Keypair for Signer<'_, KT> {
type VerifyingKey = KT::VerifyingKey;
fn verifying_key(&self) -> <Self as Keypair>::VerifyingKey {
self.public_key.clone()
}
}
impl<'y, KT: KeyType> DynSignatureAlgorithmIdentifier for Signer<'y, KT> {
impl<KT: KeyType> DynSignatureAlgorithmIdentifier for Signer<'_, KT> {
fn signature_algorithm_identifier(&self) -> spki::Result<AlgorithmIdentifierOwned> {
self.verifying_key().signature_algorithm_identifier()
}
}
impl<'y, KT: KeyType> signature::Signer<KT::Signature> for Signer<'y, KT> {
impl<KT: KeyType> signature::Signer<KT::Signature> for Signer<'_, KT> {
fn try_sign(&self, msg: &[u8]) -> SigResult<KT::Signature> {
let data = KT::prepare(msg)?;