Skip to content

Commit 314e621

Browse files
committed
Liballoc minor hash import tweak
1 parent 033013c commit 314e621

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/liballoc/vec.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
use core::array::LengthAtMost32;
6363
use core::cmp::{self, Ordering};
6464
use core::fmt;
65-
use core::hash::{self, Hash};
65+
use core::hash::{Hash, Hasher};
6666
use core::intrinsics::{arith_offset, assume};
6767
use core::iter::{FromIterator, FusedIterator, TrustedLen};
6868
use core::marker::PhantomData;
@@ -1945,7 +1945,7 @@ impl<T: Clone> Clone for Vec<T> {
19451945
#[stable(feature = "rust1", since = "1.0.0")]
19461946
impl<T: Hash> Hash for Vec<T> {
19471947
#[inline]
1948-
fn hash<H: hash::Hasher>(&self, state: &mut H) {
1948+
fn hash<H: Hasher>(&self, state: &mut H) {
19491949
Hash::hash(&**self, state)
19501950
}
19511951
}

0 commit comments

Comments
 (0)