refactor: Use same order as in trait

This commit is contained in:
Andriy Kushnir (Orhideous) 2022-11-28 13:22:43 +02:00 committed by Nyaaori
parent e71ad56e68
commit 98e24722ad
No known key found for this signature in database
GPG key ID: E7819C3ED4D1F82E

View file

@ -281,6 +281,10 @@ impl state_res::Event for PduEvent {
&self.sender
}
fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch {
MilliSecondsSinceUnixEpoch(self.origin_server_ts)
}
fn event_type(&self) -> &RoomEventType {
&self.kind
}
@ -289,10 +293,6 @@ impl state_res::Event for PduEvent {
&self.content
}
fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch {
MilliSecondsSinceUnixEpoch(self.origin_server_ts)
}
fn state_key(&self) -> Option<&str> {
self.state_key.as_deref()
}