diff --git a/dash-spv/clippy.toml b/dash-spv/clippy.toml new file mode 100644 index 000000000..960f88294 --- /dev/null +++ b/dash-spv/clippy.toml @@ -0,0 +1,4 @@ +disallowed-types = [ + { path = "std::sync::Mutex", reason = "Use tokio::sync::Mutex instead" }, + { path = "std::sync::RwLock", reason = "Use tokio::sync::RwLock instead" } +] diff --git a/dash-spv/src/lib.rs b/dash-spv/src/lib.rs index e166fdcd3..cabedf76a 100644 --- a/dash-spv/src/lib.rs +++ b/dash-spv/src/lib.rs @@ -59,6 +59,8 @@ //! - **Persistent storage**: Save and restore state between runs //! - **Extensive logging**: Built-in tracing support for debugging +#![deny(clippy::disallowed_types)] + #[cfg(any(test, feature = "test-utils"))] pub mod test_utils;