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>
#[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
}
}