base: Fix a clippy warning if the encryption feature is turned off

master
Damir Jelić 2021-04-29 10:46:47 +02:00
parent 4fc21a8860
commit b3cf2c5899
1 changed files with 1 additions and 0 deletions

View File

@ -430,6 +430,7 @@ impl BaseClient {
let mut push_context = self.get_push_room_context(room, room_info, changes).await?; let mut push_context = self.get_push_room_context(room, room_info, changes).await?;
for event in ruma_timeline.events { for event in ruma_timeline.events {
#[allow(unused_mut)]
let mut event: SyncRoomEvent = event.into(); let mut event: SyncRoomEvent = event.into();
match hoist_room_event_prev_content(&event.event) { match hoist_room_event_prev_content(&event.event) {