1
Fork 0

Rollup merge of #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.
This commit is contained in:
kennytm 2018-03-30 01:31:17 +02:00 committed by GitHub
commit dd5f17abb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@ use core::any::Any;
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);
}
}