Commit 5988723
Add clippy async-safety lints to catch Mutex held across .await
Add workspace-level clippy lints:
- `await_holding_lock`: warns when a std::sync::Mutex (or RwLock) guard
is held across an .await point, which can cause deadlocks or block the
tokio runtime.
- `await_holding_refcell_ref`: warns when a RefCell borrow is held across
an .await point, which will panic if the future is polled from a
different context.
These lints pass cleanly on the existing codebase - all current
std::sync::Mutex usage correctly drops guards before .await points.
https://claude.ai/code/session_0133EbxcuGyrYJNCtfpKRjyR1 parent d5d2195 commit 5988723
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| 429 | + | |
| 430 | + | |
0 commit comments