mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-20 05:39:52 -07:00
Fix newer Clippy warnings for 1.80 (#301)
This commit is contained in:
parent
d8d8e91295
commit
4fc71c9291
6 changed files with 41 additions and 38 deletions
|
@ -1346,9 +1346,7 @@ impl ChatStore {
|
|||
|
||||
/// Get a joined room.
|
||||
pub fn get_joined_room(&self, room_id: &RoomId) -> Option<MatrixRoom> {
|
||||
let Some(room) = self.worker.client.get_room(room_id) else {
|
||||
return None;
|
||||
};
|
||||
let room = self.worker.client.get_room(room_id)?;
|
||||
|
||||
if room.state() == MatrixRoomState::Joined {
|
||||
Some(room)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue