Skip to content

Commit 8c239b6

Browse files
committed
Allow some unused items
1 parent c7e5444 commit 8c239b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/messages.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::{
77
use byteorder::{ReadBytesExt, WriteBytesExt, LE};
88

99
// opcodes
10-
// note: incomplete; only contains opcodes that we currently use
10+
// note: incomplete; only contains opcodes that we use or explored
1111
#[derive(Debug)]
1212
pub enum OpCode {
1313
ProtocolVersion = 0x00,
@@ -18,6 +18,7 @@ pub enum OpCode {
1818
Select = 0x06,
1919
MtuGet = 0x07,
2020
Write = 0x08,
21+
#[allow(dead_code, reason = "currently unused but useful during exploration")]
2122
Ping = 0x09,
2223
HardwareVersionGet = 0x0A,
2324
FirmwareVersionGet = 0x0B,
@@ -200,6 +201,7 @@ impl Response for HardwareVersionResponse {
200201
}
201202
}
202203

204+
#[allow(unused, reason = "currently unused but useful during exploration")]
203205
pub struct PingRequest(pub u8);
204206

205207
impl Request for PingRequest {

0 commit comments

Comments
 (0)