Put imports behind feature

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille
2023-12-18 14:07:01 +01:00
parent 8b878c6591
commit 4d3fc44425
+2 -1
View File
@@ -31,6 +31,8 @@ use matrix_sdk_base::{
SyncOutsideWasm,
};
use matrix_sdk_common::instant::Instant;
#[cfg(feature = "e2e-encryption")]
use ruma::events::{room::encryption::RoomEncryptionEventContent, InitialStateEvent};
use ruma::{
api::{
client::{
@@ -56,7 +58,6 @@ use ruma::{
MatrixVersion, OutgoingRequest,
},
assign,
events::{room::encryption::RoomEncryptionEventContent, InitialStateEvent},
push::Ruleset,
DeviceId, OwnedDeviceId, OwnedRoomId, OwnedServerName, RoomAliasId, RoomId, RoomOrAliasId,
ServerName, UInt, UserId,