From 03a58bcd883f2830c77aeafc95da789513f748b3 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 10 Mar 2023 12:51:58 +0100 Subject: [PATCH] Fix return type of InitialStateEvent::to_raw_any --- crates/ruma-common/src/events/kinds.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ruma-common/src/events/kinds.rs b/crates/ruma-common/src/events/kinds.rs index 524599fa..bb99b001 100644 --- a/crates/ruma-common/src/events/kinds.rs +++ b/crates/ruma-common/src/events/kinds.rs @@ -5,9 +5,9 @@ use serde::{ser::SerializeStruct, Deserialize, Deserializer, Serialize}; use serde_json::value::RawValue as RawJsonValue; use super::{ - EmptyStateKey, EphemeralRoomEventContent, EventContent, EventContentFromType, - GlobalAccountDataEventContent, MessageLikeEventContent, MessageLikeEventType, - MessageLikeUnsigned, PossiblyRedactedStateEventContent, RedactContent, + AnyInitialStateEvent, EmptyStateKey, EphemeralRoomEventContent, EventContent, + EventContentFromType, GlobalAccountDataEventContent, MessageLikeEventContent, + MessageLikeEventType, MessageLikeUnsigned, PossiblyRedactedStateEventContent, RedactContent, RedactedMessageLikeEventContent, RedactedStateEventContent, RedactedUnsigned, RedactionDeHelper, RoomAccountDataEventContent, StateEventType, StaticStateEventContent, ToDeviceEventContent, @@ -344,7 +344,7 @@ impl InitialStateEvent { /// with a `Serialize` implementation that can error (for example because it contains an /// `enum` with one or more variants that use the `#[serde(skip)]` attribute), this method /// can panic. - pub fn to_raw_any(&self) -> Raw { + pub fn to_raw_any(&self) -> Raw { self.to_raw().cast() } }