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"))]