From ab1c7ebbe27aaa2b00ded10cc7f8ded2973e47e9 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 8 Jul 2023 22:58:58 +0000 Subject: [PATCH] refactor: remove unnecessary local variable `save_param` --- src/chat.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/chat.rs b/src/chat.rs index 3eb1759d8..5dc00a0f9 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -3546,7 +3546,6 @@ pub async fn forward_msgs(context: &Context, msg_ids: &[MsgId], chat_id: ChatId) .prepare_msg_raw(context, &mut msg, None, curr_timestamp) .await?; curr_timestamp += 1; - let save_param = msg.param.clone(); msg.param = original_param; msg.id = src_msg_id; @@ -3559,7 +3558,6 @@ pub async fn forward_msgs(context: &Context, msg_ids: &[MsgId], chat_id: ChatId) } msg.update_param(context).await?; - msg.param = save_param; } else { msg.state = MessageState::OutPending; new_msg_id = chat