]> git.lizzy.rs Git - rust.git/commitdiff
Remove unnecessary use core::hash in liballoc/boxed.rs
authorMike Hommey <mh@glandium.org>
Thu, 29 Mar 2018 02:51:52 +0000 (11:51 +0900)
committerMike Hommey <mh@glandium.org>
Thu, 29 Mar 2018 02:51:52 +0000 (11:51 +0900)
It' only used for hash::Hasher, but Hasher is also imported.

src/liballoc/boxed.rs

index bfd806f99e784ef38ab381caaee235b2b4227fd9..fdc3ef4efb866b67c47673675a028fda03f871e5 100644 (file)
@@ -62,7 +62,7 @@
 use core::borrow;
 use core::cmp::Ordering;
 use core::fmt;
-use core::hash::{self, Hash, Hasher};
+use core::hash::{Hash, Hasher};
 use core::iter::FusedIterator;
 use core::marker::{self, Unpin, Unsize};
 use core::mem::{self, Pin};
@@ -508,7 +508,7 @@ impl<T: ?Sized + Eq> Eq for Box<T> {}
 
 #[stable(feature = "rust1", since = "1.0.0")]
 impl<T: ?Sized + Hash> Hash for Box<T> {
-    fn hash<H: hash::Hasher>(&self, state: &mut H) {
+    fn hash<H: Hasher>(&self, state: &mut H) {
         (**self).hash(state);
     }
 }