1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-22 02:54:21 +00:00

Do not bind warning variable in match arm

This commit is contained in:
Steffo 2024-08-08 16:59:36 +02:00
parent c726d4cbc8
commit b3b6ff7a74
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -67,7 +67,7 @@ impl TelegramWrite for DiarioEntry {
// Quote optionally covered by a spoiler tag
match self.warning.to_owned() {
None => write!(f, "<blockquote expandable>{}</blockquote>", self.clone().quote.escape_telegram_html())?,
Some(warning) => write!(f, "<blockquote expandable><tg-spoiler>{}</tg-spoiler></blockquote>", self.clone().quote.escape_telegram_html())?,
Some(_) => write!(f, "<blockquote expandable><tg-spoiler>{}</tg-spoiler></blockquote>", self.clone().quote.escape_telegram_html())?,
}
// Newline