diff options
-rw-r--r-- | client-native-lib/src/lib.rs | 3 | ||||
-rw-r--r-- | server/src/logic.rs | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/client-native-lib/src/lib.rs b/client-native-lib/src/lib.rs index 4fdf80f..f13f1bc 100644 --- a/client-native-lib/src/lib.rs +++ b/client-native-lib/src/lib.rs @@ -3,9 +3,6 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2023 metamuffin <metamuffin.org> */ -#![feature(async_closure)] -// #![feature(async_fn_in_trait)] - use futures_util::Future; use peer::{Peer, TransportChannel}; use protocol::{ProvideInfo, RelayMessage}; diff --git a/server/src/logic.rs b/server/src/logic.rs index bbafeb3..d4c71b9 100644 --- a/server/src/logic.rs +++ b/server/src/logic.rs @@ -265,6 +265,6 @@ impl Room { } pub async fn should_remove(&self) -> bool { - self.users.read().await.len() == 0 + self.users.read().await.is_empty() } } |