diff --git a/src/raw.rs b/src/raw.rs index 31a78e4..b103bd7 100644 --- a/src/raw.rs +++ b/src/raw.rs @@ -19,7 +19,7 @@ struct TypeIdHasher { } impl Hasher for TypeIdHasher { - #[inline(always)] + #[inline] fn write(&mut self, bytes: &[u8]) { // This expects to receive one and exactly one 64-bit value debug_assert!(bytes.len() == 8); @@ -28,7 +28,7 @@ impl Hasher for TypeIdHasher { } } - #[inline(always)] + #[inline] fn finish(&self) -> u64 { self.value } } @@ -229,13 +229,13 @@ impl RawMap { impl Index for RawMap where TypeId: Borrow, Q: Eq + Hash { type Output = A; - fn index<'a>(&'a self, index: Q) -> &'a A { + fn index(&self, index: Q) -> &A { self.get(&index).expect("no entry found for key") } } impl IndexMut for RawMap where TypeId: Borrow, Q: Eq + Hash { - fn index_mut<'a>(&'a mut self, index: Q) -> &'a mut A { + fn index_mut(&mut self, index: Q) -> &mut A { self.get_mut(&index).expect("no entry found for key") } }