From acd7cad29e6208302a3fef7d5c1be01dd75f5f8e Mon Sep 17 00:00:00 2001 From: Erin 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 5b3fab10..d2282119 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;