From f63062acc64564245c79bfc0a6d7012348bf71f5 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Mon, 7 Mar 2016 00:13:47 +1100 Subject: [PATCH] Keep Clippy happy. --- src/raw.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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") } } -- 2.42.0