From 3a9cb2fa432d7987c2b1fd6349139bd69ee1fdcc Mon Sep 17 00:00:00 2001 From: rasul Date: Sun, 5 Apr 2020 16:21:11 -0500 Subject: [PATCH] rustfmt --- src/world/exit.rs | 2 +- src/world/room.rs | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/world/exit.rs b/src/world/exit.rs index 9900965..0c55a6d 100644 --- a/src/world/exit.rs +++ b/src/world/exit.rs @@ -29,7 +29,7 @@ impl<'a> TryFrom<&Row<'a>> for Exit { "Unable to get column 'direction' from row" )), "Unable to parse direction" - ) + ), }) } } diff --git a/src/world/room.rs b/src/world/room.rs index 3ad6003..d6a22f7 100644 --- a/src/world/room.rs +++ b/src/world/room.rs @@ -82,11 +82,17 @@ impl<'a> TryFrom<&Row<'a>> for Room { id: try_log!(row.get("id"), "Unable to get column 'id' from row"), zone: try_log!(row.get("zone"), "Unable to get column 'zone' from row"), name: try_log!(row.get("name"), "Unable to get column 'name' from row"), - description: try_log!(row.get::<&str, String>("description"), "Unable to get column 'description' from row") - .lines() - .map(|s| String::from(s)) - .collect(), - users_visible: try_log!(row.get("users_visible"), "Unable to get column 'users_visible' from row"), + description: try_log!( + row.get::<&str, String>("description"), + "Unable to get column 'description' from row" + ) + .lines() + .map(|s| String::from(s)) + .collect(), + users_visible: try_log!( + row.get("users_visible"), + "Unable to get column 'users_visible' from row" + ), exits: HashMap::new(), }) }