From ee3b40a59acfabebe9525a6bb34c6ad567edafed Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 23 Oct 2021 12:34:36 +0000 Subject: [PATCH] Remove double reference from lookup_chat_by_reply argument --- src/dc_receive_imf.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dc_receive_imf.rs b/src/dc_receive_imf.rs index 90c0a8f47..165b58a29 100644 --- a/src/dc_receive_imf.rs +++ b/src/dc_receive_imf.rs @@ -505,7 +505,7 @@ async fn add_parts( // try to assign to a chat based on In-Reply-To/References: if let Some((new_chat_id, new_chat_id_blocked)) = - lookup_chat_by_reply(context, &mime_parser, &parent, from_id, to_ids).await? + lookup_chat_by_reply(context, mime_parser, &parent, from_id, to_ids).await? { chat_id = Some(new_chat_id); chat_id_blocked = new_chat_id_blocked; @@ -744,7 +744,7 @@ async fn add_parts( // try to assign to a chat based on In-Reply-To/References: if let Some((new_chat_id, new_chat_id_blocked)) = - lookup_chat_by_reply(context, &mime_parser, &parent, from_id, to_ids).await? + lookup_chat_by_reply(context, mime_parser, &parent, from_id, to_ids).await? { chat_id = Some(new_chat_id); chat_id_blocked = new_chat_id_blocked; @@ -1303,7 +1303,7 @@ async fn calc_sort_timestamp( async fn lookup_chat_by_reply( context: &Context, - mime_parser: &&mut MimeMessage, + mime_parser: &mut MimeMessage, parent: &Option, from_id: u32, to_ids: &ContactIds,