Skip to content

Commit 9d065b6

Browse files
committed
test(port_riscv): inline format args
Ditto. They were missed by Clippy due to conditional compilation.
1 parent 01b5e7c commit 9d065b6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/r3_port_riscv_test_driver/src/driver_kernel_tests/execute_lr_sc.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,7 @@ unsafe fn do_test<System: traits::KernelBase>() {
261261
let expected = unsafe { &*ST2.as_ptr() };
262262
assert_eq!(
263263
*got, *expected,
264-
"reached an incorrect final state after executing '{}'",
265-
code
264+
"reached an incorrect final state after executing '{code}'",
266265
);
267266
}
268267

src/r3_port_riscv_test_driver/src/panic_rtt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fn panic(info: &PanicInfo) -> ! {
1111
if let Some(mut channel) = unsafe { UpChannel::conjure(0) } {
1212
channel.set_mode(ChannelMode::BlockIfFull);
1313

14-
writeln!(channel, "{}", info).ok();
14+
writeln!(channel, "{info}").ok();
1515
}
1616

1717
loop {}

0 commit comments

Comments
 (0)