Skip to content

Commit

Permalink
test utils: prefer From impl to Into impl
Browse files Browse the repository at this point in the history
Thanks clippy, i guess?
  • Loading branch information
bnjbvr committed May 13, 2024
1 parent f661b0d commit e709cca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/matrix-sdk/src/test_utils/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ where
}
}

impl<E: EventContent> Into<Raw<AnySyncTimelineEvent>> for EventBuilder<E>
impl<E: EventContent> From<EventBuilder<E>> for Raw<AnySyncTimelineEvent>
where
E::EventType: Serialize,
{
fn into(self) -> Raw<AnySyncTimelineEvent> {
self.into_raw_sync()
fn from(val: EventBuilder<E>) -> Self {
val.into_raw_sync()
}
}

Expand Down

0 comments on commit e709cca

Please sign in to comment.