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

This commit is contained in:
Damir Jelić 2021-04-29 10:46:47 +02:00
parent 4fc21a8860
commit b3cf2c5899

View file

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