matrix-sdk: Fix clippy warning

master
Kévin Commaille 2021-04-27 14:37:43 +02:00
parent 1cc4f953b3
commit 0e2017e537
No known key found for this signature in database
GPG Key ID: 296D60AE1E61661C
1 changed files with 3 additions and 0 deletions

View File

@ -434,6 +434,9 @@ impl BaseClient {
for event in ruma_timeline.events {
match hoist_room_event_prev_content(&event) {
Ok(mut e) => {
#[cfg(not(feature = "encryption"))]
let raw_event = event;
#[cfg(feature = "encryption")]
let mut raw_event = event;
#[allow(clippy::single_match)]