Skip to content

Commit eda44f6

Browse files
committed
refactor(support_rza1): address the clippy::uninlined_format_args lint
1 parent 5872c7c commit eda44f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/r3_support_rza1/src/gpio.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ unsafe fn clear_bit16(reg: *mut u16, bit: u8) {
4040

4141
#[inline]
4242
fn panic_if_pin_is_invalid((n, m): Pin) {
43-
assert!(n >= 1 && n < 12, "1 <= {} < 12", n);
44-
assert!(m < 16, "0 <= {} < 16", m);
43+
assert!(n >= 1 && n < 12, "1 <= {n} < 12");
44+
assert!(m < 16, "0 <= {m} < 16");
4545
}
4646

4747
impl GpioExt for rza1::gpio::RegisterBlock {

0 commit comments

Comments
 (0)