refactor: enable clippy::manual_is_variant_and

This commit is contained in:
link2xt
2026-02-05 20:38:46 +00:00
committed by l
parent 983f43c33c
commit cc38298163
3 changed files with 5 additions and 6 deletions

View File

@@ -2152,11 +2152,10 @@ pub(crate) async fn prefetch_should_download(
let accepted_contact = origin.is_known();
let is_reply_to_chat_message = get_prefetch_parent_message(context, headers)
.await?
.map(|parent| match parent.is_dc_message {
.is_some_and(|parent| match parent.is_dc_message {
MessengerMessage::No => false,
MessengerMessage::Yes | MessengerMessage::Reply => true,
})
.unwrap_or_default();
});
let show_emails =
ShowEmails::from_i32(context.get_config_int(Config::ShowEmails).await?).unwrap_or_default();