From: Chris Morgan Date: Sun, 6 Mar 2016 13:13:47 +0000 (+1100) Subject: Keep Clippy happy. X-Git-Tag: 0.12.1~9 X-Git-Url: https://git.chrismorgan.info/anymap/commitdiff_plain/f63062acc64564245c79bfc0a6d7012348bf71f5 Keep Clippy happy. --- 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") } }