matrix-sdk: Fix a clippy warning

master
Damir Jelić 2021-05-12 19:45:23 +02:00
parent 77c2a4ed4f
commit 9863bc4a1c
1 changed files with 2 additions and 5 deletions

View File

@ -292,12 +292,9 @@ impl Handler {
room: Room,
event: &AnyRoomAccountDataEvent,
) {
match event {
AnyRoomAccountDataEvent::FullyRead(event) => {
if let AnyRoomAccountDataEvent::FullyRead(event) = event {
self.on_non_room_fully_read(room, &event).await
}
_ => {}
}
}
pub(crate) async fn handle_account_data_event(&self, event: &AnyGlobalAccountDataEvent) {