From 5ea720de15481650f22d0c30d40d7c8507ced12b Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 20 Dec 2023 16:26:02 -0800 Subject: [PATCH] Turn on deny(unsafe_op_in_unsafe_fn) --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 79faa27..fd92832 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -215,6 +215,11 @@ #![cfg_attr(doc_cfg, feature(doc_cfg))] #![cfg_attr(not(feature = "std"), no_std)] #![deny(dead_code, unused_imports, unused_mut)] +#![cfg_attr( + not(anyhow_no_unsafe_op_in_unsafe_fn_lint), + deny(unsafe_op_in_unsafe_fn) +)] +#![cfg_attr(anyhow_no_unsafe_op_in_unsafe_fn_lint, allow(unused_unsafe))] #![allow( clippy::doc_markdown, clippy::enum_glob_use,