File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments