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,