From fa6471421c161f5b0c0fcdbf806c83b733a82f13 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 10 Feb 2024 20:47:27 -0600 Subject: [PATCH] fix: Ensure we forbid unsafe Found via rust-lang/cargo#10554 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 55b26f3..94fdc23 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -36,7 +36,7 @@ //! # Feature Flags //! #![cfg_attr(feature = "document-features", doc = document_features::document_features!())] -#![cfg_attr(feature = "safe", forbid(unsafe_code))] +#![cfg_attr(not(feature = "unsafe"), forbid(unsafe_code))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] #[cfg(not(feature = "std"))]