Skip to content

Commit 3c726a5

Browse files
committed
Explicitly ignore logging results
1 parent 73d64f2 commit 3c726a5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

ci/logging/app/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ fn main() -> ! {
1414
#[export_name = "Hello, world!"]
1515
static A: u8 = 0;
1616

17-
writeln!(hstdout, "{:#x}", &A as *const u8 as usize);
17+
let _ = writeln!(hstdout, "{:#x}", &A as *const u8 as usize);
1818

1919
#[export_name = "Goodbye"]
2020
static B: u8 = 0;
2121

22-
writeln!(hstdout, "{:#x}", &B as *const u8 as usize);
22+
let _ = writeln!(hstdout, "{:#x}", &B as *const u8 as usize);
2323

2424
debug::exit(debug::EXIT_SUCCESS);
2525

ci/logging/app3/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ fn main() -> ! {
2727
let hstdout = hio::hstdout().unwrap();
2828
let mut logger = Logger { hstdout };
2929

30-
log!(logger, "Hello, world!");
30+
let _ = log!(logger, "Hello, world!");
3131

32-
log!(logger, "Goodbye");
32+
let _ = log!(logger, "Goodbye");
3333

3434
debug::exit(debug::EXIT_SUCCESS);
3535

ci/logging/app4/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ fn main() -> ! {
1515
let hstdout = hio::hstdout().unwrap();
1616
let mut logger = Logger { hstdout };
1717

18-
warn!(logger, "Hello, world!"); // <- CHANGED!
18+
let _ = warn!(logger, "Hello, world!"); // <- CHANGED!
1919

20-
error!(logger, "Goodbye"); // <- CHANGED!
20+
let _ = error!(logger, "Goodbye"); // <- CHANGED!
2121

2222
debug::exit(debug::EXIT_SUCCESS);
2323

0 commit comments

Comments
 (0)