mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 10:26:29 +03:00
Fix nightly clippy warnings
This commit is contained in:
@@ -717,10 +717,7 @@ where
|
|||||||
T: AsRef<str>,
|
T: AsRef<str>,
|
||||||
{
|
{
|
||||||
fn is_none_or_empty(&self) -> bool {
|
fn is_none_or_empty(&self) -> bool {
|
||||||
match self {
|
!matches!(self, Some(s) if !s.as_ref().is_empty())
|
||||||
Some(s) if !s.as_ref().is_empty() => false,
|
|
||||||
_ => true,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -235,9 +235,9 @@ fn get_autocrypt_mime<'a, 'b>(mail: &'a ParsedMail<'b>) -> Result<&'a ParsedMail
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn decrypt_if_autocrypt_message<'a>(
|
async fn decrypt_if_autocrypt_message(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
mail: &ParsedMail<'a>,
|
mail: &ParsedMail<'_>,
|
||||||
private_keyring: Keyring<SignedSecretKey>,
|
private_keyring: Keyring<SignedSecretKey>,
|
||||||
public_keyring_for_validate: Keyring<SignedPublicKey>,
|
public_keyring_for_validate: Keyring<SignedPublicKey>,
|
||||||
ret_valid_signatures: &mut HashSet<Fingerprint>,
|
ret_valid_signatures: &mut HashSet<Fingerprint>,
|
||||||
|
|||||||
Reference in New Issue
Block a user