aboutsummaryrefslogtreecommitdiff
path: root/src/proto2.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-02-21 12:04:09 +0100
committerAlex Auvolat <alex@adnab.me>2022-02-21 12:04:09 +0100
commit706a3b4ac46edd3adc344ecb263cb5d2a4a057a3 (patch)
tree719d382e95256617df64d177cc5be0511dfe740a /src/proto2.rs
parent3b8bff634198c5ae17ab16d5c85c30b3201ae593 (diff)
downloadnetapp-706a3b4ac46edd3adc344ecb263cb5d2a4a057a3.tar.gz
netapp-706a3b4ac46edd3adc344ecb263cb5d2a4a057a3.zip
Formatting & clippy
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
};