[fractal] ci: Fix clippy warning
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] ci: Fix clippy warning
- Date: Fri, 20 May 2022 11:12:30 +0000 (UTC)
commit 184558dc58569126e962c5ae1e444bb3fe14f6fd
Author: Kévin Commaille <zecakeh tedomum fr>
Date: Fri May 20 12:07:05 2022 +0200
ci: Fix clippy warning
src/session/room_list.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/session/room_list.rs b/src/session/room_list.rs
index 4324193fd..48f2b9878 100644
--- a/src/session/room_list.rs
+++ b/src/session/room_list.rs
@@ -157,8 +157,8 @@ impl RoomList {
/// Waits till the Room becomes available
pub async fn get_wait(&self, room_id: OwnedRoomId) -> Option<Room> {
- if let Some(room) = self.imp().list.borrow().get(&*room_id) {
- Some(room.clone())
+ if let Some(room) = self.get(&room_id) {
+ Some(room)
} else {
let (sender, receiver) = futures::channel::oneshot::channel();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]