File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/r3_test_runner/src/targets Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,9 @@ impl KflashDebugProbe {
148
148
149
149
// Pu the device into ISP mode. Fail-fast if this was unsuccessful.
150
150
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) ]
151
154
retry_on_fail ( || async {
152
155
// Holding the `LockGuard` across a suspend point is okay because
153
156
// `Mutex::lock` is never called for this mutex. (It's practically
@@ -198,6 +201,9 @@ impl DebugProbe for KflashDebugProbe {
198
201
// Put the device into ISP mode.
199
202
let serial_m = Mutex :: new ( & mut self . serial ) ;
200
203
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) ]
201
207
retry_on_fail ( || async {
202
208
// Holding the `LockGuard` across a suspend point is okay because
203
209
// `Mutex::lock` is never called for this mutex. (It's practically
You can’t perform that action at this time.
0 commit comments