From 1aff2d0764dfd48d3d04aa6afa2db920bbb646ae Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 2 Sep 2022 13:37:33 +0200 Subject: [PATCH] events: Derive Default for DirectEventContent --- crates/ruma-common/src/events/direct.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruma-common/src/events/direct.rs b/crates/ruma-common/src/events/direct.rs index d0ebe4b6..8bda1b62 100644 --- a/crates/ruma-common/src/events/direct.rs +++ b/crates/ruma-common/src/events/direct.rs @@ -18,7 +18,7 @@ use crate::{OwnedRoomId, OwnedUserId}; /// user. /// /// Informs the client about the rooms that are considered direct by a user. -#[derive(Clone, Debug, Deserialize, Serialize, EventContent)] +#[derive(Clone, Debug, Default, Deserialize, Serialize, EventContent)] #[allow(clippy::exhaustive_structs)] #[ruma_event(type = "m.direct", kind = GlobalAccountData)] pub struct DirectEventContent(pub BTreeMap>);