Skip to content

Commit 1b21f7d

Browse files
committed
disallowed types self documented
1 parent 848fa66 commit 1b21f7d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dash-spv/clippy.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
disallowed-types = ["std::sync::RwLock", "std::sync::Mutex"]
1+
disallowed-types = [
2+
{ path = "std::sync::RwLock", reason = "This struct is blocking and can be poisoned", replacement = "tokio::sync::RwLock" },
3+
{ path = "std::sync::Mutex", reason = "This struct is blocking and can be poisoned", replacement = "tokio::sync::Mutex" },
4+
]

0 commit comments

Comments
 (0)