mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Changed Into to From
This commit is contained in:
parent
af3305cae8
commit
1f23983bfb
1 changed files with 3 additions and 4 deletions
|
@ -1817,10 +1817,9 @@ impl Message {
|
|||
}
|
||||
|
||||
/// Implemented for syntax sugar, see issue <https://github.com/teloxide/teloxide/issues/1143>
|
||||
#[allow(clippy::from_over_into)]
|
||||
impl Into<MessageId> for Message {
|
||||
fn into(self) -> MessageId {
|
||||
self.id
|
||||
impl From<Message> for MessageId {
|
||||
fn from(message: Message) -> MessageId {
|
||||
message.id
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue