style: use _chat_id instead of let _ = chat_id

More idiomatic way to mark unused parameter.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Mikhail Kilin
2026-02-01 02:48:44 +03:00
parent c27d027ebf
commit f1a26b906c

View File

@@ -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 {