Fix return type of InitialStateEvent::to_raw_any
This commit is contained in:
parent
1af28486cc
commit
03a58bcd88
@ -5,9 +5,9 @@ use serde::{ser::SerializeStruct, Deserialize, Deserializer, Serialize};
|
|||||||
use serde_json::value::RawValue as RawJsonValue;
|
use serde_json::value::RawValue as RawJsonValue;
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
EmptyStateKey, EphemeralRoomEventContent, EventContent, EventContentFromType,
|
AnyInitialStateEvent, EmptyStateKey, EphemeralRoomEventContent, EventContent,
|
||||||
GlobalAccountDataEventContent, MessageLikeEventContent, MessageLikeEventType,
|
EventContentFromType, GlobalAccountDataEventContent, MessageLikeEventContent,
|
||||||
MessageLikeUnsigned, PossiblyRedactedStateEventContent, RedactContent,
|
MessageLikeEventType, MessageLikeUnsigned, PossiblyRedactedStateEventContent, RedactContent,
|
||||||
RedactedMessageLikeEventContent, RedactedStateEventContent, RedactedUnsigned,
|
RedactedMessageLikeEventContent, RedactedStateEventContent, RedactedUnsigned,
|
||||||
RedactionDeHelper, RoomAccountDataEventContent, StateEventType, StaticStateEventContent,
|
RedactionDeHelper, RoomAccountDataEventContent, StateEventType, StaticStateEventContent,
|
||||||
ToDeviceEventContent,
|
ToDeviceEventContent,
|
||||||
@ -344,7 +344,7 @@ impl<C: StaticStateEventContent> InitialStateEvent<C> {
|
|||||||
/// with a `Serialize` implementation that can error (for example because it contains an
|
/// 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
|
/// `enum` with one or more variants that use the `#[serde(skip)]` attribute), this method
|
||||||
/// can panic.
|
/// can panic.
|
||||||
pub fn to_raw_any(&self) -> Raw<Self> {
|
pub fn to_raw_any(&self) -> Raw<AnyInitialStateEvent> {
|
||||||
self.to_raw().cast()
|
self.to_raw().cast()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user