From 1b5928a54a2b0e3eb82c7d5da8ee9f63da5c1a72 Mon Sep 17 00:00:00 2001 From: Titouan Rigoudy Date: Mon, 1 Nov 2021 21:54:32 +0100 Subject: [PATCH] Suppress last warnings. --- client/src/room.rs | 1 + client/src/user.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/client/src/room.rs b/client/src/room.rs index afa395e..a8fe597 100644 --- a/client/src/room.rs +++ b/client/src/room.rs @@ -321,6 +321,7 @@ impl RoomMap { Ok(room) } + #[allow(dead_code)] /// Records that we are now trying to leave the given room. /// If the room is not found, or if its membership status is not `Member`, /// returns an error. diff --git a/client/src/user.rs b/client/src/user.rs index cd999f1..28b81f4 100644 --- a/client/src/user.rs +++ b/client/src/user.rs @@ -77,6 +77,7 @@ impl UserMap { Ok(()) } + #[cfg(test)] /// Returns the list of (user name, user data) representing all known users. pub fn get_list(&self) -> Vec<(String, User)> { let mut users = Vec::new();