Changed Into to From

This commit is contained in:
LasterAlex 2024-09-23 01:36:07 +03:00
parent af3305cae8
commit 1f23983bfb
No known key found for this signature in database

View file

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