refactor: fix clippy::needless_lifetimes warnings

This commit is contained in:
link2xt
2024-10-14 05:31:51 +00:00
parent 57871bbaf8
commit c5b78741d6
2 changed files with 3 additions and 3 deletions

View File

@@ -622,7 +622,7 @@ fn exif_orientation(exif: &exif::Exif, context: &Context) -> i32 {
0 0
} }
impl<'a> fmt::Display for BlobObject<'a> { impl fmt::Display for BlobObject<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "$BLOBDIR/{}", self.name) write!(f, "$BLOBDIR/{}", self.name)
} }

View File

@@ -41,7 +41,7 @@ enum SignedPublicKeyOrSubkey<'a> {
Subkey(&'a SignedPublicSubKey), Subkey(&'a SignedPublicSubKey),
} }
impl<'a> KeyTrait for SignedPublicKeyOrSubkey<'a> { impl KeyTrait for SignedPublicKeyOrSubkey<'_> {
fn fingerprint(&self) -> Vec<u8> { fn fingerprint(&self) -> Vec<u8> {
match self { match self {
Self::Key(k) => k.fingerprint(), Self::Key(k) => k.fingerprint(),
@@ -64,7 +64,7 @@ impl<'a> KeyTrait for SignedPublicKeyOrSubkey<'a> {
} }
} }
impl<'a> PublicKeyTrait for SignedPublicKeyOrSubkey<'a> { impl PublicKeyTrait for SignedPublicKeyOrSubkey<'_> {
fn verify_signature( fn verify_signature(
&self, &self,
hash: HashAlgorithm, hash: HashAlgorithm,