From f7a10a7e471b59d3096be2695c2a05d407d80df1 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 2 Feb 2022 11:47:56 +0100 Subject: [PATCH] events: Fix missing feature flags --- crates/ruma-events/src/room/create.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ruma-events/src/room/create.rs b/crates/ruma-events/src/room/create.rs index 8a6b53f9..c336e84c 100644 --- a/crates/ruma-events/src/room/create.rs +++ b/crates/ruma-events/src/room/create.rs @@ -4,9 +4,11 @@ use ruma_events_macros::EventContent; use ruma_identifiers::{EventId, RoomId, RoomVersionId, UserId}; +#[cfg(feature = "unstable-spec")] use ruma_serde::StringEnum; use serde::{Deserialize, Serialize}; +#[cfg(feature = "unstable-spec")] use crate::PrivOwnedStr; /// The content of an `m.room.create` event. @@ -81,6 +83,7 @@ pub enum RoomType { _Custom(PrivOwnedStr), } +#[cfg(feature = "unstable-spec")] impl RoomType { /// Creates a string slice from this `RoomType`. pub fn as_str(&self) -> &str {