From 1af28486cccda56aeb6607bdd0df7b8e15bcba79 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 10 Mar 2023 11:51:57 +0100 Subject: [PATCH] events: Implement Default for EmptyStateKey --- crates/ruma-common/src/events/state_key.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruma-common/src/events/state_key.rs b/crates/ruma-common/src/events/state_key.rs index b7e24030..64b90f18 100644 --- a/crates/ruma-common/src/events/state_key.rs +++ b/crates/ruma-common/src/events/state_key.rs @@ -4,7 +4,7 @@ use serde::{ }; /// A type that can be used as the `state_key` for event types where that field is always empty. -#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord)] +#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord)] #[allow(clippy::exhaustive_structs)] pub struct EmptyStateKey;