events: Fix missing feature flags
This commit is contained in:
parent
f46c7a643f
commit
f7a10a7e47
@ -4,9 +4,11 @@
|
|||||||
|
|
||||||
use ruma_events_macros::EventContent;
|
use ruma_events_macros::EventContent;
|
||||||
use ruma_identifiers::{EventId, RoomId, RoomVersionId, UserId};
|
use ruma_identifiers::{EventId, RoomId, RoomVersionId, UserId};
|
||||||
|
#[cfg(feature = "unstable-spec")]
|
||||||
use ruma_serde::StringEnum;
|
use ruma_serde::StringEnum;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
|
#[cfg(feature = "unstable-spec")]
|
||||||
use crate::PrivOwnedStr;
|
use crate::PrivOwnedStr;
|
||||||
|
|
||||||
/// The content of an `m.room.create` event.
|
/// The content of an `m.room.create` event.
|
||||||
@ -81,6 +83,7 @@ pub enum RoomType {
|
|||||||
_Custom(PrivOwnedStr),
|
_Custom(PrivOwnedStr),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "unstable-spec")]
|
||||||
impl RoomType {
|
impl RoomType {
|
||||||
/// Creates a string slice from this `RoomType`.
|
/// Creates a string slice from this `RoomType`.
|
||||||
pub fn as_str(&self) -> &str {
|
pub fn as_str(&self) -> &str {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user