summaryrefslogtreecommitdiff
path: root/src/gameserver.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-02-09 23:54:24 +0100
committertroido <troido@protonmail.com>2020-02-09 23:54:24 +0100
commitb0e665f5436e08e4fd7446a59b87ac28f562a601 (patch)
treefcdeee5178606eadfe1e1b5744410bfd4fef260a /src/gameserver.rs
parentb9cfb78c20fd309929aae98f24acc8ba4a9a7481 (diff)
refactoring using cargo clippy
Diffstat (limited to 'src/gameserver.rs')
-rw-r--r--src/gameserver.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gameserver.rs b/src/gameserver.rs
index c7c5062..d7b2ccd 100644
--- a/src/gameserver.rs
+++ b/src/gameserver.rs
@@ -183,10 +183,10 @@ fn parse_message(msg: &str) -> Message {
Message::Input(arr[1].clone())
}
_ => {
- Message::Invalid(format!("unknown messsage type {:?}", msgtype).to_string())
+ Message::Invalid(format!("unknown messsage type {:?}", msgtype))
}
}
- } else { Message::Invalid(format!("first array value not string: {:?}", arr[0].to_string()).to_string()) }
+ } else { Message::Invalid(format!("first array value not string: {:?}", arr[0].to_string())) }
} else { Message::Invalid("not json array".to_string()) }
} else { Message::Invalid("not json message".to_string()) }
}