make clippy happy

This commit is contained in:
Simon Laux
2023-01-07 20:59:17 +01:00
parent e0a9fa4910
commit 131f0303ba

View File

@@ -59,7 +59,7 @@ pub(crate) async fn get_chat_list_item_by_id(
entry: &ChatListEntry,
) -> Result<ChatListItemFetchResult> {
let chat_id = ChatId::new(entry.0);
let last_msgid = entry.1.map(|msg_id| MsgId::new(msg_id));
let last_msgid = entry.1.map(MsgId::new);
let fresh_message_counter = chat_id.get_fresh_msg_cnt(ctx).await?;