diff --git a/clippy.toml b/clippy.toml new file mode 100644 index 000000000..4da81ba14 --- /dev/null +++ b/clippy.toml @@ -0,0 +1 @@ +allow-unwrap-in-tests = true \ No newline at end of file diff --git a/crates/radicle/src/cob/test.rs b/crates/radicle/src/cob/test.rs index 7a1c96549..b2c50a933 100644 --- a/crates/radicle/src/cob/test.rs +++ b/crates/radicle/src/cob/test.rs @@ -1,4 +1,3 @@ -#![allow(clippy::unwrap_used)] use std::marker::PhantomData; use std::ops::Deref; diff --git a/crates/radicle/src/storage/refs/sigrefs/git/properties.rs b/crates/radicle/src/storage/refs/sigrefs/git/properties.rs index 55fbba87d..be9eb2a77 100644 --- a/crates/radicle/src/storage/refs/sigrefs/git/properties.rs +++ b/crates/radicle/src/storage/refs/sigrefs/git/properties.rs @@ -1,5 +1,3 @@ -#![allow(clippy::unwrap_used)] - use crypto::{signature, test::signer::MockSigner, PublicKey, Signer as _}; use qcheck::TestResult; use qcheck_macros::quickcheck; diff --git a/crates/radicle/src/storage/refs/sigrefs/property.rs b/crates/radicle/src/storage/refs/sigrefs/property.rs index 39e5f8a5a..917e7e674 100644 --- a/crates/radicle/src/storage/refs/sigrefs/property.rs +++ b/crates/radicle/src/storage/refs/sigrefs/property.rs @@ -1,5 +1,3 @@ -#![allow(clippy::unwrap_used)] - mod mock; use mock::*; diff --git a/crates/radicle/src/storage/refs/sigrefs/read/test.rs b/crates/radicle/src/storage/refs/sigrefs/read/test.rs index 49872d2c9..9e8d83571 100644 --- a/crates/radicle/src/storage/refs/sigrefs/read/test.rs +++ b/crates/radicle/src/storage/refs/sigrefs/read/test.rs @@ -1,5 +1,3 @@ -#![allow(clippy::unwrap_used)] - mod mock; mod commit_reader; diff --git a/crates/radicle/src/storage/refs/sigrefs/write/test.rs b/crates/radicle/src/storage/refs/sigrefs/write/test.rs index f65969c4e..a727f4162 100644 --- a/crates/radicle/src/storage/refs/sigrefs/write/test.rs +++ b/crates/radicle/src/storage/refs/sigrefs/write/test.rs @@ -1,5 +1,3 @@ -#![allow(clippy::unwrap_used)] - mod mock; mod commit_writer;