Skip to content

Commit dd5f17a

Browse files
authored
Rollup merge of rust-lang#49468 - glandium:cleanup, r=pnkfelix
Remove unnecessary use core::hash in liballoc/boxed.rs It' only used for hash::Hasher, but Hasher is also imported.
2 parents 361ddfe + 6462c0b commit dd5f17a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/liballoc/boxed.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ use core::any::Any;
6262
use core::borrow;
6363
use core::cmp::Ordering;
6464
use core::fmt;
65-
use core::hash::{self, Hash, Hasher};
65+
use core::hash::{Hash, Hasher};
6666
use core::iter::FusedIterator;
6767
use core::marker::{self, Unpin, Unsize};
6868
use core::mem::{self, Pin};
@@ -508,7 +508,7 @@ impl<T: ?Sized + Eq> Eq for Box<T> {}
508508

509509
#[stable(feature = "rust1", since = "1.0.0")]
510510
impl<T: ?Sized + Hash> Hash for Box<T> {
511-
fn hash<H: hash::Hasher>(&self, state: &mut H) {
511+
fn hash<H: Hasher>(&self, state: &mut H) {
512512
(**self).hash(state);
513513
}
514514
}

0 commit comments

Comments
 (0)