Browse Source

Suppress warnings in room/map.rs.

main
Titouan Rigoudy 2 years ago
parent
commit
78b71b501c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      client/src/room/map.rs

+ 3
- 0
client/src/room/map.rs View File

@ -43,6 +43,8 @@ impl RoomEntry {
self.state.clone() self.state.clone()
} }
/// Returns the state contained in this entry.
#[cfg(test)]
pub fn into_state(self) -> RoomState { pub fn into_state(self) -> RoomState {
self.state self.state
} }
@ -137,6 +139,7 @@ impl RoomMap {
/// Looks up the given room name in the map, returning an immutable /// 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. /// reference to the associated data if found, or an error if not found.
#[cfg(test)]
pub fn get_strict( pub fn get_strict(
&self, &self,
room_name: &str, room_name: &str,


Loading…
Cancel
Save