From c2785038d82f5eaafa1c22360b63fa887e8c776f Mon Sep 17 00:00:00 2001 From: strawberry Date: Thu, 11 Apr 2024 21:50:40 -0400 Subject: [PATCH] add back default derive for WellKnownConfig Signed-off-by: strawberry --- src/config/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/mod.rs b/src/config/mod.rs index bfda89fe..17aaf7ed 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -159,6 +159,7 @@ pub struct Config { pub allow_unstable_room_versions: bool, #[serde(default = "default_default_room_version")] pub default_room_version: RoomVersionId, + #[serde(default)] pub well_known: WellKnownConfig, #[serde(default)] pub allow_jaeger: bool, @@ -314,7 +315,7 @@ pub struct TlsConfig { pub dual_protocol: bool, } -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Default)] pub struct WellKnownConfig { pub client: Option, pub server: Option,