From b1ac80e244bc29943e1253238fb0f7577cb87a9b Mon Sep 17 00:00:00 2001 From: Eoan Ermine Date: Fri, 7 Aug 2020 12:02:30 +0500 Subject: [PATCH] Fix code formatting, remove unused import --- src/bot/api.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bot/api.rs b/src/bot/api.rs index a4d0c2db..f90c5123 100644 --- a/src/bot/api.rs +++ b/src/bot/api.rs @@ -21,7 +21,6 @@ use crate::{ }, Bot, }; -use std::ops::Deref; impl Bot { /// Use this method to receive incoming updates using long polling ([wiki]). @@ -1035,8 +1034,9 @@ impl Bot { ) -> EditMessageCaption { match self.parse_mode { None => EditMessageCaption::new(self.clone(), chat_or_inline_message), - Some(parse_mode) => EditMessageCaption::new(self.clone(), chat_or_inline_message) - .parse_mode(parse_mode), + Some(parse_mode) => { + EditMessageCaption::new(self.clone(), chat_or_inline_message).parse_mode(parse_mode) + } } }