From d03a7363e64cde37310b8ce91932f3606d14ecb1 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sun, 16 May 2021 23:23:19 +0200 Subject: [PATCH] events: Update definition of DummyToDeviceEventContent Make it a unit struct instead of a struct struct without fields. --- crates/ruma-events/src/dummy.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ruma-events/src/dummy.rs b/crates/ruma-events/src/dummy.rs index c532901b..27040e29 100644 --- a/crates/ruma-events/src/dummy.rs +++ b/crates/ruma-events/src/dummy.rs @@ -12,8 +12,8 @@ use serde::{Deserialize, Serialize}; /// The event does not have any content associated with it. The sending client is expected to /// send a key share request shortly after this message, causing the receiving client to process /// this *m.dummy* event as the most recent event and using the keyshare request to set up the -/// session. The keyshare request and *m.dummy* combination should result in the original -/// sending client receiving keys over the newly established session. +/// session. The keyshare request and *m.dummy* combination should result in the original sending +/// client receiving keys over the newly established session. #[derive(Clone, Debug, Deserialize, Serialize, EventContent)] #[ruma_event(type = "m.dummy", kind = ToDevice)] -pub struct DummyToDeviceEventContent {} +pub struct DummyToDeviceEventContent;