events: Fix wrong cfg

This commit is contained in:
Jonas Platte 2022-09-16 12:13:15 +02:00
parent c54b96dc69
commit b18313e579
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
# [unreleased] # [unreleased]
Bug fixes:
* Fix ruma-common not compiling with the Cargo features `events` and
`unstable-msc2677` active, and `unstable-msc2676` active
# 0.10.2 # 0.10.2
Improvements: Improvements:

View File

@ -12,7 +12,7 @@ use serde::{Deserialize, Serialize};
use super::AnySyncMessageLikeEvent; use super::AnySyncMessageLikeEvent;
#[cfg(feature = "unstable-msc3440")] #[cfg(feature = "unstable-msc3440")]
use crate::serde::Raw; use crate::serde::Raw;
#[cfg(feature = "unstable-msc2677")] #[cfg(any(feature = "unstable-msc2676", feature = "unstable-msc2677"))]
use crate::MilliSecondsSinceUnixEpoch; use crate::MilliSecondsSinceUnixEpoch;
use crate::{serde::StringEnum, PrivOwnedStr}; use crate::{serde::StringEnum, PrivOwnedStr};
#[cfg(feature = "unstable-msc2676")] #[cfg(feature = "unstable-msc2676")]