Files
craft-anything/clippy.toml
Brandon Thomas 292d5af06e Stop deadlocks as they form and watch every lock for one that never lets go (#5)
* Stop deadlocks as they form and watch every lock for one that never lets go

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Give the stuck-lock banner's test a program of its own

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 20:28:16 -04:00

11 lines
447 B
TOML

allow-unwrap-in-tests = true
allow-expect-in-tests = true
allow-panic-in-tests = true
allow-indexing-slicing-in-tests = true
# Locks must be able to notice a deadlock and get out of it; see crates/platform/src/sync.rs.
disallowed-types = [
{ path = "std::sync::Mutex", reason = "use craft_anything_platform::sync::Mutex, which can't hang" },
{ path = "std::sync::MutexGuard", reason = "use craft_anything_platform::sync::MutexGuard" },
]