about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2020-06-22 20:52:02 +0800
committerIvan Tham <pickfire@riseup.net>2020-06-22 20:52:02 +0800
commit314e621198942a6dfd5db8beea27065f0ee69aa3 (patch)
tree4d5012e50d8fe2e261c6218710b266445efa8e14 /src/liballoc
parent033013cab3a861224fd55f494c8be1cb0349eb49 (diff)
downloadrust-314e621198942a6dfd5db8beea27065f0ee69aa3.tar.gz
rust-314e621198942a6dfd5db8beea27065f0ee69aa3.zip
Liballoc minor hash import tweak
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/vec.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index 95c3b3b1861..e9d2aa17162 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -62,7 +62,7 @@
 use core::array::LengthAtMost32;
 use core::cmp::{self, Ordering};
 use core::fmt;
-use core::hash::{self, Hash};
+use core::hash::{Hash, Hasher};
 use core::intrinsics::{arith_offset, assume};
 use core::iter::{FromIterator, FusedIterator, TrustedLen};
 use core::marker::PhantomData;
@@ -1945,7 +1945,7 @@ impl<T: Clone> Clone for Vec<T> {
 #[stable(feature = "rust1", since = "1.0.0")]
 impl<T: Hash> Hash for Vec<T> {
     #[inline]
-    fn hash<H: hash::Hasher>(&self, state: &mut H) {
+    fn hash<H: Hasher>(&self, state: &mut H) {
         Hash::hash(&**self, state)
     }
 }