summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Stock <stuart@int08h.com>2019-08-18 09:56:24 -0500
committerStuart Stock <stuart@int08h.com>2019-08-18 09:56:24 -0500
commit6d1afbaf4ed3b41fe7945366ec8d915fbeab10da (patch)
tree11e453a1696b0fdba33e1c17331d5cebb51bbd38
parentbbf13c7d20e22d53b1dcc5f3179fbae3de62726b (diff)
downloadroughenough-6d1afbaf4ed3b41fe7945366ec8d915fbeab10da.zip
minor changes to compile cleanly on Rust 1.37.0
-rw-r--r--src/bin/roughenough-server.rs2
-rw-r--r--src/message.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/roughenough-server.rs b/src/bin/roughenough-server.rs
index c9301d1..8a086e7 100644
--- a/src/bin/roughenough-server.rs
+++ b/src/bin/roughenough-server.rs
@@ -43,7 +43,7 @@ macro_rules! check_ctrlc {
};
}
-fn polling_loop(config: Box<ServerConfig>) {
+fn polling_loop(config: Box<dyn ServerConfig>) {
let mut server = Server::new(config);
let cfg = server.get_config(); // borrow config that was moved above
diff --git a/src/message.rs b/src/message.rs
index fea3014..9f719e6 100644
--- a/src/message.rs
+++ b/src/message.rs
@@ -64,7 +64,7 @@ impl RtMessage {
match num_tags {
0 => Ok(RtMessage::new(0)),
1 => RtMessage::single_tag_message(bytes, &mut msg),
- 2...1024 => RtMessage::multi_tag_message(num_tags, bytes, &mut msg),
+ 2..=1024 => RtMessage::multi_tag_message(num_tags, bytes, &mut msg),
_ => Err(Error::InvalidNumTags(num_tags)),
}
}