From 4a4cdf7d148be0a2a756f323d27c0ee5b7976438 Mon Sep 17 00:00:00 2001 From: troido Date: Fri, 14 Feb 2020 14:36:32 +0100 Subject: extract the state to save --- src/roomtemplate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/roomtemplate.rs') diff --git a/src/roomtemplate.rs b/src/roomtemplate.rs index e77fbca..cb8ae6a 100644 --- a/src/roomtemplate.rs +++ b/src/roomtemplate.rs @@ -11,7 +11,7 @@ pub struct RoomTemplate { } impl RoomTemplate { - + pub fn from_json(jsonroom: &Value) -> Result{ let size = ( jsonroom.get("width").ok_or("no with")?.as_i64().ok_or("with not a number")?, -- cgit