From b81bfd3b2ad1b9d9061d36581e9ab3dfab49a1f3 Mon Sep 17 00:00:00 2001 From: Waffle Date: Mon, 10 Aug 2020 18:39:30 +0300 Subject: [PATCH] fix fmt --- src/bot/api.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/bot/api.rs b/src/bot/api.rs index 5278d357..8fe0fc80 100644 --- a/src/bot/api.rs +++ b/src/bot/api.rs @@ -1057,8 +1057,9 @@ impl Bot { { match self.parse_mode { None => EditMessageText::new(self.clone(), chat_id, message_id, text), - Some(parse_mode) => EditMessageText::new(self.clone(), chat_id, message_id, text) - .parse_mode(parse_mode), + Some(parse_mode) => { + EditMessageText::new(self.clone(), chat_id, message_id, text).parse_mode(parse_mode) + } } } @@ -1117,8 +1118,9 @@ impl Bot { { match self.parse_mode { None => EditMessageCaption::new(self.clone(), chat_id, message_id), - Some(parse_mode) => EditMessageCaption::new(self.clone(), chat_id, message_id) - .parse_mode(parse_mode), + Some(parse_mode) => { + EditMessageCaption::new(self.clone(), chat_id, message_id).parse_mode(parse_mode) + } } }