From f85d98f557b457fdf9846b851055a5fbab2eeee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20K=C3=B6sters?= Date: Sun, 18 Oct 2020 11:31:44 +0200 Subject: [PATCH] client-api: Implement Default for incoming event filter types --- ruma-client-api/src/r0/filter.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ruma-client-api/src/r0/filter.rs b/ruma-client-api/src/r0/filter.rs index 0cd59beb..78fee048 100644 --- a/ruma-client-api/src/r0/filter.rs +++ b/ruma-client-api/src/r0/filter.rs @@ -35,7 +35,7 @@ impl Default for EventFormat { /// Filters to be applied to room events. #[derive(Clone, Copy, Debug, Default, Outgoing, Serialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] -#[incoming_derive(Clone, Serialize)] +#[incoming_derive(Clone, Default, Serialize)] pub struct RoomEventFilter<'a> { /// A list of event types to exclude. /// @@ -140,7 +140,7 @@ impl IncomingRoomEventFilter { /// Filters to be applied to room data. #[derive(Clone, Copy, Debug, Default, Outgoing, Serialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] -#[incoming_derive(Clone, Serialize)] +#[incoming_derive(Clone, Default, Serialize)] pub struct RoomFilter<'a> { /// Include rooms that the user has left in the sync. /// @@ -222,7 +222,7 @@ impl IncomingRoomFilter { /// Filter for non-room data. #[derive(Clone, Copy, Debug, Default, Outgoing, Serialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] -#[incoming_derive(Clone, Serialize)] +#[incoming_derive(Clone, Default, Serialize)] pub struct Filter<'a> { /// A list of event types to exclude. /// @@ -294,7 +294,7 @@ impl IncomingFilter { /// A filter definition #[derive(Clone, Copy, Debug, Default, Outgoing, Serialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] -#[incoming_derive(Clone, Serialize)] +#[incoming_derive(Clone, Default, Serialize)] pub struct FilterDefinition<'a> { /// List of event fields to include. ///