From b52ef853a5f79424db1dab2e79f7e23db553f2f6 Mon Sep 17 00:00:00 2001 From: Titouan Rigoudy Date: Fri, 2 Dec 2022 22:47:41 +0000 Subject: [PATCH] Avoid reaching into RoomEntry from RoomMap. --- client/src/room/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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