Fix two pattern matching related warnings
parent
a607d70371
commit
ffc5204109
|
@ -30,8 +30,7 @@ impl EventEmitter for AutoJoinBot {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
match room {
|
if let SyncRoom::Invited(room) = room {
|
||||||
SyncRoom::Invited(room) => {
|
|
||||||
let room = room.read().await;
|
let room = room.read().await;
|
||||||
println!("Autojoining room {}", room.display_name());
|
println!("Autojoining room {}", room.display_name());
|
||||||
self.client
|
self.client
|
||||||
|
@ -39,8 +38,6 @@ impl EventEmitter for AutoJoinBot {
|
||||||
.await
|
.await
|
||||||
.expect("Can't join room");
|
.expect("Can't join room");
|
||||||
}
|
}
|
||||||
_ => (),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -727,8 +727,8 @@ impl BaseClient {
|
||||||
let mut olm = self.olm.lock().await;
|
let mut olm = self.olm.lock().await;
|
||||||
|
|
||||||
if let Some(o) = &mut *olm {
|
if let Some(o) = &mut *olm {
|
||||||
if let Some(decrypted) =
|
if let Ok(decrypted) =
|
||||||
o.decrypt_room_event(&encrypted_event, room_id).await.ok()
|
o.decrypt_room_event(&encrypted_event, room_id).await
|
||||||
{
|
{
|
||||||
if let Ok(d) = decrypted.deserialize() {
|
if let Ok(d) = decrypted.deserialize() {
|
||||||
e = d
|
e = d
|
||||||
|
|
Loading…
Reference in New Issue