events: Fix copy-paste mistake

This commit is contained in:
Marcel 2021-05-22 20:24:59 +02:00 committed by GitHub
parent f7ed9c5c44
commit 087a2b9012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ pub type ParentEvent = StateEvent<ParentEventContent>;
/// The payload for `ParentEvent`. /// The payload for `ParentEvent`.
#[derive(Clone, Debug, Deserialize, Serialize, EventContent)] #[derive(Clone, Debug, Deserialize, Serialize, EventContent)]
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
#[ruma_event(type = "m.space.child", kind = State)] #[ruma_event(type = "m.space.parent", kind = State)]
pub struct ParentEventContent { pub struct ParentEventContent {
/// List of candidate servers that can be used to join the room. /// List of candidate servers that can be used to join the room.
#[serde(skip_serializing_if = "Option::is_none")] #[serde(skip_serializing_if = "Option::is_none")]