Skip to content

Commit 0408109

Browse files
committed
refactor(test_runner): ignore the clippy::redundant_async_block lint
1 parent 8864459 commit 0408109

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/r3_test_runner/src/targets/kflash.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ impl KflashDebugProbe {
148148

149149
// Pu the device into ISP mode. Fail-fast if this was unsuccessful.
150150
let serial_m = Mutex::new(serial);
151+
// FIXME: `redundant_async_block` false positive (the suggestion would
152+
// shorten the lock guard's lifetime)
153+
#[expect(clippy::redundant_async_block)]
151154
retry_on_fail(|| async {
152155
// Holding the `LockGuard` across a suspend point is okay because
153156
// `Mutex::lock` is never called for this mutex. (It's practically
@@ -198,6 +201,9 @@ impl DebugProbe for KflashDebugProbe {
198201
// Put the device into ISP mode.
199202
let serial_m = Mutex::new(&mut self.serial);
200203
let isp_boot_cmds = self.isp_boot_cmds;
204+
// FIXME: `redundant_async_block` false positive (the suggestion
205+
// would shorten the lock guard's lifetime)
206+
#[expect(clippy::redundant_async_block)]
201207
retry_on_fail(|| async {
202208
// Holding the `LockGuard` across a suspend point is okay because
203209
// `Mutex::lock` is never called for this mutex. (It's practically

0 commit comments

Comments
 (0)