diff --git a/Cargo.toml b/Cargo.toml index b8a151b..b4aac9d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,9 +7,10 @@ keywords = ["volatile"] description = "A simple volatile wrapper type" documentation = "https://docs.rs/volatile" repository = "https://github.com/phil-opp/volatile" +edition = "2021" [dependencies] -zerocopy = { version = "0.5.0", optional = true } +zerocopy = { version = "0.6.1", optional = true } [features] default = [ "zerocopy" ] diff --git a/src/lib.rs b/src/lib.rs index 6c5688d..750bb68 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,8 +24,6 @@ //! and then perform operations on the pointer as usual in a volatile way. This method works as all //! of the volatile wrapper types are the same size as their contained values. #![no_std] -#![feature(const_fn_trait_bound)] -#[cfg(feature = "zerocopy")] extern crate zerocopy; use core::ptr; #[cfg(feature = "zerocopy")] use zerocopy::FromBytes;