events: Fix a test case

This commit is contained in:
Jonas Platte 2021-10-02 13:08:19 +02:00
parent e41abbb56b
commit 3ee4ac08fb
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -2,13 +2,19 @@
// https://github.com/rust-lang/rust/issues/55779 // https://github.com/rust-lang/rust/issues/55779
extern crate serde; extern crate serde;
use ruma_common::MilliSecondsSinceUnixEpoch;
use ruma_events::{StateEventContent, Unsigned}; use ruma_events::{StateEventContent, Unsigned};
use ruma_events_macros::Event; use ruma_events_macros::Event;
use ruma_identifiers::{EventId, RoomId, UserId};
/// State event. /// State event.
#[derive(Clone, Debug, Event)] #[derive(Clone, Debug, Event)]
pub struct StateEvent<C: StateEventContent> { pub struct StateEvent<C: StateEventContent> {
pub content: C, pub content: C,
pub event_id: EventId,
pub sender: UserId,
pub origin_server_ts: MilliSecondsSinceUnixEpoch,
pub room_id: RoomId,
pub state_key: String, pub state_key: String,
pub prev_content: Option<C>, pub prev_content: Option<C>,
pub unsigned: Unsigned, pub unsigned: Unsigned,