]> git.lizzy.rs Git - rust.git/blobdiff - src/libcore/hash/mod.rs
Various minor/cosmetic improvements to code
[rust.git] / src / libcore / hash / mod.rs
index e7907e0344493bf13b8a298a84f4ec08ce21c69b..3e59ee1f8e5f5efdc243fc4afe5c1d3586cd9c1d 100644 (file)
@@ -361,7 +361,7 @@ fn write_isize(&mut self, i: isize) {
 }
 
 #[stable(feature = "indirect_hasher_impl", since = "1.22.0")]
-impl<'a, H: Hasher + ?Sized> Hasher for &'a mut H {
+impl<H: Hasher + ?Sized> Hasher for &mut H {
     fn finish(&self) -> u64 {
         (**self).finish()
     }
@@ -408,7 +408,7 @@ fn write_isize(&mut self, i: isize) {
 
 /// A trait for creating instances of [`Hasher`].
 ///
-/// A `BuildHasher` is typically used (e.g. by [`HashMap`]) to create
+/// A `BuildHasher` is typically used (e.g., by [`HashMap`]) to create
 /// [`Hasher`]s for each key such that they are hashed independently of one
 /// another, since [`Hasher`]s contain state.
 ///
@@ -669,14 +669,14 @@ fn hash<H: Hasher>(&self, state: &mut H) {
 
 
     #[stable(feature = "rust1", since = "1.0.0")]
-    impl<'a, T: ?Sized + Hash> Hash for &'a T {
+    impl<T: ?Sized + Hash> Hash for &T {
         fn hash<H: Hasher>(&self, state: &mut H) {
             (**self).hash(state);
         }
     }
 
     #[stable(feature = "rust1", since = "1.0.0")]
-    impl<'a, T: ?Sized + Hash> Hash for &'a mut T {
+    impl<T: ?Sized + Hash> Hash for &mut T {
         fn hash<H: Hasher>(&self, state: &mut H) {
             (**self).hash(state);
         }