summaryrefslogtreecommitdiff
path: root/src/gameserver.rs
diff options
context:
space:
mode:
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()) }
}