Skip to content

Commit 6497a2a

Browse files
committed
disallowed types self documented
1 parent f967ae6 commit 6497a2a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
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+
]

dash-spv/src/storage/blocks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use std::path::PathBuf;
66

77
use async_trait::async_trait;
88
use dashcore::block::Header as BlockHeader;
9-
use dashcore::BlockHash;
109
use dashcore::prelude::CoreBlockHeight;
10+
use dashcore::BlockHash;
1111
use tokio::sync::RwLock;
1212

1313
use crate::storage::segments::SegmentCache;

0 commit comments

Comments
 (0)