aboutsummaryrefslogtreecommitdiff
path: root/macros/src/lib.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-10-01 21:15:00 +0200
committerHampusM <hampus@hampusmat.com>2023-10-01 21:15:00 +0200
commitaf88321fc14a95b3613ec11a7f665db3c468c944 (patch)
tree723853d3788e559afa65c603a12b271e6872dd32 /macros/src/lib.rs
parent1fc0371867b02127a5da63f01f03d264b382b552 (diff)
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
Diffstat (limited to 'macros/src/lib.rs')
-rw-r--r--macros/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
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)]