Skip to content

Commit 2290370

Browse files
committed
fix warnings
1 parent 4862952 commit 2290370

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

nrf52840-hal-tests/tests/serial.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ use nrf52840_hal::{
1717
};
1818

1919
struct State {
20-
uarte: Uarte<UARTE0>,
21-
timer: Timer<TIMER0, OneShot>,
20+
_uarte: Uarte<UARTE0>,
21+
_timer: Timer<TIMER0, OneShot>,
2222
}
2323

2424
#[defmt_test::tests]
@@ -40,7 +40,7 @@ mod tests {
4040
let p = unwrap!(pac::Peripherals::take());
4141
let port0 = p0::Parts::new(p.P0);
4242

43-
let timer = Timer::one_shot(p.TIMER0);
43+
let _timer = Timer::one_shot(p.TIMER0);
4444

4545
let rxd = port0.p0_28.into_floating_input().degrade();
4646
let txd = port0.p0_29.into_push_pull_output(Level::High).degrade();
@@ -52,11 +52,11 @@ mod tests {
5252
rts: None,
5353
};
5454

55-
let uarte = Uarte::new(p.UARTE0, pins, Parity::EXCLUDED, Baudrate::BAUD9600);
55+
let _uarte = Uarte::new(p.UARTE0, pins, Parity::EXCLUDED, Baudrate::BAUD9600);
5656

5757
State {
58-
uarte,
59-
timer,
58+
_uarte,
59+
_timer,
6060
}
6161
}
6262

0 commit comments

Comments
 (0)