From af88321fc14a95b3613ec11a7f665db3c468c944 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 1 Oct 2023 21:15:00 +0200 Subject: refactor: remove impossible unwrap in injectable macro This unwrap couldn't possibly be Err and can be removed by creating method call expressions by hand --- macros/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'macros/src/lib.rs') diff --git a/macros/src/lib.rs b/macros/src/lib.rs index 232483e..7928e03 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -1,5 +1,6 @@ #![cfg_attr(doc_cfg, feature(doc_cfg))] #![deny(clippy::all, clippy::pedantic, missing_docs, unsafe_code)] +#![cfg_attr(not(test), deny(clippy::unwrap_used, clippy::panic))] #![allow(unknown_lints)] #![allow(clippy::module_name_repetitions, clippy::manual_let_else)] -- cgit v1.2.3-18-g5258