Fix code formatting, remove unused import

This commit is contained in:
Eoan Ermine 2020-08-07 12:02:30 +05:00
parent 517afc0cfe
commit b1ac80e244

View file

@ -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)
}
}
}