diff --git a/CHANGELOG.md b/CHANGELOG.md index 84115670..42aac0ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Changed +- updated from edition 2018 to edition 2021 - [breaking-change] `IndexMap` and `IndexSet` now require that keys implement the `core::hash::Hash` trait instead of the `hash32::Hash` (v0.2.0) trait - move `pool::singleton::Box` to the `pool::box` module diff --git a/Cargo.toml b/Cargo.toml index 0ec3c8d0..0a0c5b79 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ authors = [ categories = ["data-structures", "no-std"] description = "`static` friendly data structures that don't require dynamic memory allocation" documentation = "https://docs.rs/heapless" -edition = "2018" +edition = "2021" keywords = ["static", "no-heap"] license = "MIT OR Apache-2.0" name = "heapless" diff --git a/src/lib.rs b/src/lib.rs index b6ca41ff..62282333 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -75,8 +75,6 @@ #![cfg_attr(not(test), no_std)] #![deny(missing_docs)] -#![deny(rust_2018_compatibility)] -#![deny(rust_2018_idioms)] #![deny(warnings)] pub use binary_heap::BinaryHeap; diff --git a/src/vec.rs b/src/vec.rs index a77ba524..f7e4ae38 100644 --- a/src/vec.rs +++ b/src/vec.rs @@ -1,7 +1,4 @@ -use core::{ - cmp::Ordering, convert::TryFrom, fmt, hash, iter::FromIterator, mem::MaybeUninit, ops, ptr, - slice, -}; +use core::{cmp::Ordering, fmt, hash, iter::FromIterator, mem::MaybeUninit, ops, ptr, slice}; /// A fixed capacity [`Vec`](https://doc.rust-lang.org/std/vec/struct.Vec.html) ///