Skip to content

Commit 32d56ee

Browse files
committed
refactor(test_runner): use #![feature(generic_arg_infer)]
1 parent d351813 commit 32d56ee

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/r3_test_runner/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![feature(exhaustive_patterns)]
2+
#![feature(generic_arg_infer)]
23
#![feature(must_not_suspend)] // `must_not_suspend` lint
34
#![feature(decl_macro)] // `macro`
45
#![feature(let_else)] // `let ... = ... else { ... }`

src/r3_test_runner/src/targets/probe_rs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ impl ReadRtt {
322322
Self {
323323
options,
324324
st: ReadRttSt::Idle {
325-
buf: Box::new([0u8; 1024]),
325+
buf: Box::new([0u8; _]),
326326
session,
327327
rtt: Box::new(rtt),
328328
pos: 0,

src/r3_test_runner/src/targets/rp_pico.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ impl PicobootCmd {
514514
_addr_size: PicobootCmdArgsAddrSize {
515515
_addr: addr,
516516
_size: size,
517-
_pad: [0; 8],
517+
_pad: [0; _],
518518
},
519519
},
520520
}
@@ -534,7 +534,7 @@ impl PicobootCmd {
534534
_pc: pc,
535535
_sp: sp,
536536
_delay_ms: delay_ms,
537-
_pad: [0; 4],
537+
_pad: [0; _],
538538
},
539539
},
540540
}

0 commit comments

Comments
 (0)