From c60b9ac168664f778e9d3af28f663aeac317e0b0 Mon Sep 17 00:00:00 2001 From: Bogdan Opanchuk Date: Wed, 6 Nov 2024 17:03:01 -0800 Subject: [PATCH] Allow unwraps for tests in lib.rs instead of a separate config file --- clippy.toml | 1 - manul/src/lib.rs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 clippy.toml diff --git a/clippy.toml b/clippy.toml deleted file mode 100644 index 154626e..0000000 --- a/clippy.toml +++ /dev/null @@ -1 +0,0 @@ -allow-unwrap-in-tests = true diff --git a/manul/src/lib.rs b/manul/src/lib.rs index 8d3323f..9f3a842 100644 --- a/manul/src/lib.rs +++ b/manul/src/lib.rs @@ -3,8 +3,6 @@ #![doc = include_str!("../../README.md")] #![warn( clippy::mod_module_files, - clippy::unwrap_used, - clippy::indexing_slicing, missing_docs, missing_copy_implementations, rust_2018_idioms, @@ -13,6 +11,7 @@ unused_qualifications, missing_debug_implementations )] +#![cfg_attr(not(test), warn(clippy::unwrap_used, clippy::indexing_slicing,))] extern crate alloc;