Skip to content

Commit d5d95e1

Browse files
committed
Clean up warnings about unused variables
1 parent 40ff11e commit d5d95e1

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/11-usart/examples/buffer-overrun.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use aux11::{entry, iprint, iprintln};
66

77
#[entry]
88
fn main() -> ! {
9-
let (usart1, mono_timer, itm) = aux11::init();
9+
let (usart1, _mono_timer, _itm) = aux11::init();
1010

1111
// Send a string
1212
for byte in b"The quick brown fox jumps over the lazy dog.".iter() {

src/11-usart/examples/echo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use heapless::{consts, Vec};
77

88
#[entry]
99
fn main() -> ! {
10-
let (usart1, mono_timer, itm) = aux11::init();
10+
let (usart1, _mono_timer, _itm) = aux11::init();
1111

1212
// A buffer with 32 bytes of capacity
1313
let mut buffer: Vec<u8, consts::U32> = Vec::new();

src/11-usart/examples/receive-a-single-byte.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use aux11::{entry, iprint, iprintln};
77

88
#[entry]
99
fn main() -> ! {
10-
let (usart1, mono_timer, itm) = aux11::init();
10+
let (usart1, _mono_timer, _itm) = aux11::init();
1111

1212
loop {
1313
// Wait until there's data available

src/11-usart/examples/reverse-string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use heapless::{consts, Vec};
88

99
#[entry]
1010
fn main() -> ! {
11-
let (usart1, mono_timer, itm) = aux11::init();
11+
let (usart1, _mono_timer, _itm) = aux11::init();
1212

1313
// A buffer with 32 bytes of capacity
1414
let mut buffer: Vec<u8, consts::U32> = Vec::new();

src/11-usart/examples/the-answer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl fmt::Write for SerialPort {
3636

3737
#[entry]
3838
fn main() -> ! {
39-
let (usart1, mono_timer, itm) = aux11::init();
39+
let (usart1, _mono_timer, _itm) = aux11::init();
4040

4141
let mut serial = SerialPort { usart1 };
4242

src/11-usart/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use aux11::{entry, iprint, iprintln};
66

77
#[entry]
88
fn main() -> ! {
9-
let (usart1, mono_timer, itm) = aux11::init();
9+
let (usart1, _mono_timer, _itm) = aux11::init();
1010

1111
// Send a single character
1212
usart1

0 commit comments

Comments
 (0)