From 1a9cf6c2a640fd0815ddfee63b737ecafa48e3c8 Mon Sep 17 00:00:00 2001 From: ondra05 Date: Fri, 4 Nov 2022 00:58:23 +0100 Subject: [PATCH] Fix clippy complaining when used instead of cargo check with RA --- ablescript/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ablescript/src/lib.rs b/ablescript/src/lib.rs index 5b3fab1..d228211 100644 --- a/ablescript/src/lib.rs +++ b/ablescript/src/lib.rs @@ -2,7 +2,8 @@ //! for more //! information. -#![forbid(unsafe_code, clippy::unwrap_used)] +#![forbid(unsafe_code)] +#![cfg_attr(not(test), forbid(clippy::unwrap_used))] pub mod ast; pub mod error;