Skip to content

Commit

Permalink
allow unused variants
Browse files Browse the repository at this point in the history
  • Loading branch information
liamkinne committed May 5, 2024
1 parent ebba3e3 commit 7f44c07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub const START: u8 = 0x02;
pub const MAX_PAYLOAD_LEN: usize = 224;

/// Command.
#[allow(unused)]
#[derive(Debug)]
pub enum Command {
Request(Request),
Expand All @@ -13,6 +14,7 @@ pub enum Command {
}

/// Request command.
#[allow(unused)]
#[derive(Debug)]
pub enum Request {
/// Send data to configured address.
Expand Down Expand Up @@ -76,6 +78,7 @@ impl Into<u8> for Request {
}

/// Send data error kind.
#[allow(unused)]
#[derive(Debug, Clone, Copy)]
pub enum SendDataError {
AckTimeout = 0x01,
Expand Down

0 comments on commit 7f44c07

Please sign in to comment.