mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-07 23:44:53 -04:00
test: Fix a compiler warning if e2e-encryption and experimental-sliding-sync aren't enabled.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user