diff --git a/Cargo.toml b/Cargo.toml index e409225..4c51911 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "stuff" version = "0.1.4" -edition = "2021" +edition = "2018" description = "Stuffing things into pointers." readme = "./README.md" homepage = "https://github.com/Nilstrieb/stuff" diff --git a/src/lib.rs b/src/lib.rs index 04d7fe9..8029cdd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ #![no_std] #![warn(rust_2018_idioms)] -#![deny(unsafe_op_in_unsafe_fn)] +#![cfg_attr(test, deny(unsafe_op_in_unsafe_fn))] // this is great, but MSRV :( #![warn(missing_docs)] //! A crate for stuffing things into a pointer.