test: Fix a compiler warning if e2e-encryption and experimental-sliding-sync aren't enabled.

This commit is contained in:
Ivan Enderlin
2024-01-11 12:07:07 +01:00
parent f9e8f1178b
commit e028710cf9

View File

@@ -1675,6 +1675,8 @@ mod tests {
#[cfg(all(feature = "e2e-encryption", feature = "experimental-sliding-sync"))]
#[async_test]
async fn test_when_there_are_no_latest_encrypted_events_decrypting_them_does_nothing() {
use crate::StateChanges;
// Given a room
let user_id = user_id!("@u:u.to");
let room_id = room_id!("!r:u.to");
@@ -1686,7 +1688,7 @@ mod tests {
assert!(room.latest_event().is_none());
// When I tell it to do some decryption
let mut changes = crate::StateChanges::default();
let mut changes = StateChanges::default();
client.decrypt_latest_events(&room, &mut changes).await;
// Then nothing changed