summaryrefslogtreecommitdiff
path: root/src/roomtemplate.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-02-14 14:36:32 +0100
committertroido <troido@protonmail.com>2020-02-14 14:36:32 +0100
commit4a4cdf7d148be0a2a756f323d27c0ee5b7976438 (patch)
tree7add0a0d735f93cb1fce6ae4f0c476a0d550a3ee /src/roomtemplate.rs
parent7821febc8ee4c89ca1825054e0baf39eea3a0380 (diff)
extract the state to save
Diffstat (limited to 'src/roomtemplate.rs')
-rw-r--r--src/roomtemplate.rs2
1 files changed, 1 insertions, 1 deletions
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<RoomTemplate, &'static str>{
let size = (
jsonroom.get("width").ok_or("no with")?.as_i64().ok_or("with not a number")?,