mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-24 23:57:38 +01:00
Fix code formatting, remove unused import
This commit is contained in:
parent
517afc0cfe
commit
b1ac80e244
1 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,6 @@ use crate::{
|
||||||
},
|
},
|
||||||
Bot,
|
Bot,
|
||||||
};
|
};
|
||||||
use std::ops::Deref;
|
|
||||||
|
|
||||||
impl Bot {
|
impl Bot {
|
||||||
/// Use this method to receive incoming updates using long polling ([wiki]).
|
/// Use this method to receive incoming updates using long polling ([wiki]).
|
||||||
|
@ -1035,8 +1034,9 @@ impl Bot {
|
||||||
) -> EditMessageCaption {
|
) -> EditMessageCaption {
|
||||||
match self.parse_mode {
|
match self.parse_mode {
|
||||||
None => EditMessageCaption::new(self.clone(), chat_or_inline_message),
|
None => EditMessageCaption::new(self.clone(), chat_or_inline_message),
|
||||||
Some(parse_mode) => EditMessageCaption::new(self.clone(), chat_or_inline_message)
|
Some(parse_mode) => {
|
||||||
.parse_mode(parse_mode),
|
EditMessageCaption::new(self.clone(), chat_or_inline_message).parse_mode(parse_mode)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue