fix warnings in src/message_answerer.rs

This commit is contained in:
Akulij 2025-06-07 01:46:35 +05:00
parent 3bb03365ed
commit 4a090de77b

View File

@ -127,7 +127,7 @@ impl<'a> MessageAnswerer<'a> {
.and_then(|m| m.variant); .and_then(|m| m.variant);
let text = self.get_text(literal, variant.as_deref(), true).await?; let text = self.get_text(literal, variant.as_deref(), true).await?;
let media = self.db.get_media(literal).await?; let media = self.db.get_media(literal).await?;
let (chat_id, msg_id) = match media.len() { let (_, msg_id) = match media.len() {
// just a text // just a text
0 => { 0 => {
let msg = let msg =