aboutsummaryrefslogtreecommitdiff
path: root/src/proto2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/proto2.rs')
-rw-r--r--src/proto2.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/proto2.rs b/src/proto2.rs
index 4e126d3..7210781 100644
--- a/src/proto2.rs
+++ b/src/proto2.rs
@@ -1,5 +1,5 @@
-use crate::proto::*;
use crate::error::*;
+use crate::proto::*;
pub(crate) struct QueryMessage<'a> {
pub(crate) prio: RequestPriority,
@@ -58,7 +58,7 @@ impl<'a> QueryMessage<'a> {
let path = &bytes[2..2 + path_length];
let telemetry_id = if telemetry_id_len > 0 {
- Some(bytes[3 + path_length .. 3 + path_length + telemetry_id_len].to_vec())
+ Some(bytes[3 + path_length..3 + path_length + telemetry_id_len].to_vec())
} else {
None
};