mirror of
https://github.com/chatmail/core.git
synced 2026-04-29 03:16:29 +03:00
refactor: fix clippy::needless_lifetimes warnings
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user