diff --git a/src/async_client.rs b/src/async_client.rs index 3e843752..6894f6af 100644 --- a/src/async_client.rs +++ b/src/async_client.rs @@ -18,7 +18,7 @@ use std::convert::{TryFrom, TryInto}; use std::sync::atomic::{AtomicU64, Ordering}; use std::sync::{Arc, Mutex, RwLock as SyncLock}; use std::time::{Duration, Instant}; -use tokio::sync::{RwLock, RwLockReadGuard}; +use tokio::sync::RwLock; use async_std::task::sleep; diff --git a/src/models/room.rs b/src/models/room.rs index 4a69a366..deea05ad 100644 --- a/src/models/room.rs +++ b/src/models/room.rs @@ -260,7 +260,7 @@ impl Room { RoomEvent::RoomCanonicalAlias(ca) => self.handle_canonical(ca), RoomEvent::RoomAliases(a) => self.handle_room_aliases(a), // power levels of the room members - RoomEvent::RoomPowerLevels(p) => self.handle_power_level(p), + // RoomEvent::RoomPowerLevels(p) => self.handle_power_level(p), _ => false, } }