Skip to content

Commit

Permalink
Update imports from hashbrown
Browse files Browse the repository at this point in the history
  • Loading branch information
bdelmas committed Jan 15, 2019
1 parent 150ae42 commit 48be5a8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@
// limitations under the License.

use errors::Error;
use hashbrown::hash_map::DefaultHashBuilder;
use hashbrown::{HashMap, HashSet};
type DefaultHashMapBuilder = ::hashbrown::hash_map::DefaultHashBuilder;
type DefaultHashSetBuilder = ::hashbrown::hash_map::DefaultHashBuilder;
use std::cell::RefCell;
use std::cmp;

Expand Down Expand Up @@ -101,13 +100,13 @@ impl ProgressSet {
ProgressSet {
progress: HashMap::with_capacity_and_hasher(
voters + learners,
DefaultHashMapBuilder::default(),
DefaultHashBuilder::default(),
),
configuration: Configuration {
voters: HashSet::with_capacity_and_hasher(voters, DefaultHashSetBuilder::default()),
voters: HashSet::with_capacity_and_hasher(voters, DefaultHashBuilder::default()),
learners: HashSet::with_capacity_and_hasher(
learners,
DefaultHashSetBuilder::default(),
DefaultHashBuilder::default(),
),
},
sort_buffer: Default::default(),
Expand Down

0 comments on commit 48be5a8

Please sign in to comment.