Skip to content

Commit

Permalink
Clean imports in hashglobe
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Sep 5, 2017
1 parent 34e0805 commit 02fe616
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 21 deletions.
14 changes: 7 additions & 7 deletions components/hashglobe/src/hash_map.rs
Expand Up @@ -11,14 +11,14 @@
use self::Entry::*;
use self::VacantEntryState::*;

use borrow::Borrow;
use cmp::max;
use fmt::{self, Debug};
use std::borrow::Borrow;
use std::cmp::max;
use std::fmt::{self, Debug};
#[allow(deprecated)]
use hash::{Hash, BuildHasher};
use iter::FromIterator;
use mem::{self, replace};
use ops::{Deref, Index};
use std::hash::{Hash, BuildHasher};
use std::iter::FromIterator;
use std::mem::{self, replace};
use std::ops::{Deref, Index};

use super::table::{self, Bucket, EmptyBucket, FullBucket, FullBucketMut, RawTable, SafeHash};
use super::table::BucketState::{Empty, Full};
Expand Down
10 changes: 5 additions & 5 deletions components/hashglobe/src/hash_set.rs
Expand Up @@ -8,11 +8,11 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use borrow::Borrow;
use fmt;
use hash::{Hash, BuildHasher};
use iter::{Chain, FromIterator};
use ops::{BitOr, BitAnd, BitXor, Sub};
use std::borrow::Borrow;
use std::fmt;
use std::hash::{Hash, BuildHasher};
use std::iter::{Chain, FromIterator};
use std::ops::{BitOr, BitAnd, BitXor, Sub};

use super::Recover;
use super::hash_map::{self, HashMap, Keys, RandomState};
Expand Down
2 changes: 0 additions & 2 deletions components/hashglobe/src/lib.rs
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

pub use std::*;

extern crate heapsize;

mod alloc;
Expand Down
13 changes: 6 additions & 7 deletions components/hashglobe/src/table.rs
Expand Up @@ -9,13 +9,12 @@
// except according to those terms.

use alloc::{alloc, dealloc};
use cmp;
use hash::{BuildHasher, Hash, Hasher};
use marker;
use mem::{align_of, size_of};
use mem;
use ops::{Deref, DerefMut};
use ptr;
use std::cmp;
use std::hash::{BuildHasher, Hash, Hasher};
use std::marker;
use std::mem::{self, align_of, size_of};
use std::ops::{Deref, DerefMut};
use std::ptr;
use shim::{Unique, Shared};

use self::BucketState::*;
Expand Down

0 comments on commit 02fe616

Please sign in to comment.