From f1a26b906cf345ee1e76d9040d351632ad107ec7 Mon Sep 17 00:00:00 2001 From: Mikhail Kilin Date: Sun, 1 Feb 2026 02:48:44 +0300 Subject: [PATCH] style: use _chat_id instead of let _ = chat_id More idiomatic way to mark unused parameter. Co-Authored-By: Claude Sonnet 4.5 --- src/tdlib/messages.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tdlib/messages.rs b/src/tdlib/messages.rs index 5439eab..bedf9cd 100644 --- a/src/tdlib/messages.rs +++ b/src/tdlib/messages.rs @@ -302,11 +302,10 @@ impl MessageManager { /// TODO: В tdlib-rs 1.8.29 поле `pinned_message_id` было удалено из `Chat`. /// Нужно использовать `getChatPinnedMessage` или альтернативный способ. /// Временно отключено, возвращает `None`. - pub async fn load_current_pinned_message(&mut self, chat_id: ChatId) { + pub async fn load_current_pinned_message(&mut self, _chat_id: ChatId) { // TODO: В tdlib-rs 1.8.29 поле pinned_message_id было удалено из Chat. // Нужно использовать getChatPinnedMessage или альтернативный способ. // Временно отключено. - let _ = chat_id; self.current_pinned_message = None; // match functions::get_chat(chat_id, self.client_id).await {