diff --git a/src/header/internals/vec_map.rs b/src/header/internals/vec_map.rs index df0a7556..3541c2b4 100644 --- a/src/header/internals/vec_map.rs +++ b/src/header/internals/vec_map.rs @@ -34,8 +34,7 @@ impl VecMap { } #[inline] - pub fn get(&self, key: &K2) -> Option<&V> - where K2: PartialEq + ?Sized { + pub fn get + ?Sized>(&self, key: &K2) -> Option<&V> { self.find(key).map(move |pos| &self.vec[pos].1) } @@ -59,8 +58,7 @@ impl VecMap { self.vec.iter() } #[inline] - pub fn remove(&mut self, key: &K2) -> Option - where K2: PartialEq + ?Sized { + pub fn remove + ?Sized>(&mut self, key: &K2) -> Option { self.find(key).map(|pos| self.vec.remove(pos)).map(|(_, v)| v) } #[inline]