From b3b6ff7a74a312f65c6cfbc3a4249368fc82e502 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 8 Aug 2024 16:59:36 +0200 Subject: [PATCH] Do not bind `warning` variable in match arm --- src/services/telegram/commands/diario.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/telegram/commands/diario.rs b/src/services/telegram/commands/diario.rs index b30c4f7d..2b1a709b 100644 --- a/src/services/telegram/commands/diario.rs +++ b/src/services/telegram/commands/diario.rs @@ -67,7 +67,7 @@ impl TelegramWrite for DiarioEntry { // Quote optionally covered by a spoiler tag match self.warning.to_owned() { None => write!(f, "
{}
", self.clone().quote.escape_telegram_html())?, - Some(warning) => write!(f, "
{}
", self.clone().quote.escape_telegram_html())?, + Some(_) => write!(f, "
{}
", self.clone().quote.escape_telegram_html())?, } // Newline