clippy: Configure lint `unwrap_used`

By setting `allow-unwrap-in-tests`, we can avoid repeating
`allow(clippy::unwrap_used)` many times over.
This commit is contained in:
Lorenz Leutgeb 2026-04-15 00:55:45 +02:00
parent dbec748c47
commit c23a257f3c
No known key found for this signature in database
6 changed files with 1 additions and 9 deletions

1
clippy.toml Normal file
View File

@ -0,0 +1 @@
allow-unwrap-in-tests = true

View File

@ -1,4 +1,3 @@
#![allow(clippy::unwrap_used)]
use std::marker::PhantomData;
use std::ops::Deref;

View File

@ -1,5 +1,3 @@
#![allow(clippy::unwrap_used)]
use crypto::{signature, test::signer::MockSigner, PublicKey, Signer as _};
use qcheck::TestResult;
use qcheck_macros::quickcheck;

View File

@ -1,5 +1,3 @@
#![allow(clippy::unwrap_used)]
mod mock;
use mock::*;

View File

@ -1,5 +1,3 @@
#![allow(clippy::unwrap_used)]
mod mock;
mod commit_reader;

View File

@ -1,5 +1,3 @@
#![allow(clippy::unwrap_used)]
mod mock;
mod commit_writer;