diff --git a/Cargo.toml b/Cargo.toml index 2cb0de9..2812921 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "slice_map" -version = "0.2.1" +version = "0.2.2" edition = "2021" description = "A generic container to store a single type of data into unevenly sized slices." repository = "https://github.com/DoctorWhoof/slice_map.git" diff --git a/src/lib.rs b/src/lib.rs index 04f857d..db15c7e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,7 +9,7 @@ pub(crate) mod test; pub type ResultOrStr = Result; pub type Slice = core::ops::Range; -use core::{marker::PhantomData, ops::Range}; +use core::ops::Range; use slotmap::{basic::Values, SlotMap}; extern crate alloc; @@ -28,7 +28,6 @@ slotmap::new_key_type! { pub struct SliceMap { pub(crate) items: Vec, // Generic items pub(crate) slices: SlotMap, // Ranges that map to individual item slices - _marker_values: PhantomData, } impl SliceMap { @@ -37,7 +36,6 @@ impl SliceMap { Self { items: Vec::new(), slices: SlotMap::with_key(), - _marker_values: PhantomData, } } @@ -46,7 +44,6 @@ impl SliceMap { Self { items: Vec::with_capacity(cap), slices: SlotMap::with_key(), - _marker_values: PhantomData, } }