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>
|
/// Implemented for syntax sugar, see issue <https://github.com/teloxide/teloxide/issues/1143>
|
||||||
#[allow(clippy::from_over_into)]
|
impl From<Message> for MessageId {
|
||||||
impl Into<MessageId> for Message {
|
fn from(message: Message) -> MessageId {
|
||||||
fn into(self) -> MessageId {
|
message.id
|
||||||
self.id
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue