From d60a65f82b458af51fd155bb8b1982f60fadf4f7 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 24 Jul 2023 16:59:46 +0200 Subject: [PATCH] chore: Make Clippy happy. --- crates/matrix-sdk-ui/src/room_list_service/room_list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/matrix-sdk-ui/src/room_list_service/room_list.rs b/crates/matrix-sdk-ui/src/room_list_service/room_list.rs index 27b9f7fd6..fbe9f1469 100644 --- a/crates/matrix-sdk-ui/src/room_list_service/room_list.rs +++ b/crates/matrix-sdk-ui/src/room_list_service/room_list.rs @@ -80,7 +80,7 @@ impl RoomList { pin_mut!(room_list_service_state); // As soon as the state changed, drain the entries stream. - while let Some(_) = room_list_service_state.next().await { + while room_list_service_state.next().await.is_some() { // Since a broadcast channel is used, if there is no receiver, it won't // break. We are not interested by the result of the drainer send, we just // drain.