diff --git a/src/utils/telegramdisplay.rs b/src/utils/telegramdisplay.rs index f7145961..165e4ef5 100644 --- a/src/utils/telegramdisplay.rs +++ b/src/utils/telegramdisplay.rs @@ -19,10 +19,9 @@ impl TelegramEscape for T where String: From { fn escape_telegram_html(self) -> String { - let s: String = String::from(self); - let s = s.replace("<", "<"); - let s = s.replace(">", ">"); - let s = s.replace("&", "&"); - s + String::from(self) + .replace("<", "<") + .replace(">", ">") + .replace("&", "&") } }