From 78b71b501c1302fec6fd038b8a1c7b33640e52a6 Mon Sep 17 00:00:00 2001 From: Titouan Rigoudy Date: Wed, 30 Nov 2022 22:19:27 +0000 Subject: [PATCH] Suppress warnings in room/map.rs. --- client/src/room/map.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/room/map.rs b/client/src/room/map.rs index e59db4b..72779d1 100644 --- a/client/src/room/map.rs +++ b/client/src/room/map.rs @@ -43,6 +43,8 @@ impl RoomEntry { self.state.clone() } + /// Returns the state contained in this entry. + #[cfg(test)] pub fn into_state(self) -> RoomState { self.state } @@ -137,6 +139,7 @@ impl RoomMap { /// Looks up the given room name in the map, returning an immutable /// reference to the associated data if found, or an error if not found. + #[cfg(test)] pub fn get_strict( &self, room_name: &str,