Skip to content

Commit

Permalink
Squelch some unused warnings in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamwaffles committed Jul 21, 2024
1 parent b5cd267 commit ecbdfbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ethercrab-wire/tests/signed-enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ fn cia402_control_word() {
#[test]
fn sized() {
#[derive(ethercrab_wire::EtherCrabWireRead)]
#[allow(unused)]
#[wire(bytes = 9)]
struct DriveState {
#[wire(bytes = 4)]
Expand All @@ -142,6 +143,7 @@ fn sized() {
}

#[derive(Copy, Clone, ethercrab_wire::EtherCrabWireWrite)]
#[allow(unused)]
#[wire(bytes = 1)]
#[repr(u8)]
enum ControlState {
Expand Down

0 comments on commit ecbdfbd

Please sign in to comment.