|
|
@ -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,
|
|
|
|