mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-22 11:04:21 +00:00
Do not bind warning
variable in match arm
This commit is contained in:
parent
c726d4cbc8
commit
b3b6ff7a74
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ impl TelegramWrite for DiarioEntry {
|
||||||
// Quote optionally covered by a spoiler tag
|
// Quote optionally covered by a spoiler tag
|
||||||
match self.warning.to_owned() {
|
match self.warning.to_owned() {
|
||||||
None => write!(f, "<blockquote expandable>{}</blockquote>", self.clone().quote.escape_telegram_html())?,
|
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
|
// Newline
|
||||||
|
|
Loading…
Reference in a new issue