diff --git a/client/src/room/map.rs b/client/src/room/map.rs index 45f6180..37dd757 100644 --- a/client/src/room/map.rs +++ b/client/src/room/map.rs @@ -155,7 +155,7 @@ impl RoomMap { self .map .insert(name.clone(), RoomEntry::new(name, room)) - .map(|entry| entry.state) + .map(|entry| entry.into_state()) } /// Looks up the given room name in the map, returning an immutable