summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)),
}
}