diff --git a/src/lib.rs b/src/lib.rs index 4b09cbe..c549395 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,6 @@ extern crate serde; extern crate unreachable; use std::collections::LinkedList; -use std::default::Default; use std::fmt; use std::iter::{FromIterator, IntoIterator, Iterator}; use std::ops; @@ -40,7 +39,7 @@ impl BitSet { #[inline] pub fn with_capacity(capacity: usize) -> BitSet { BitSet { - blocks: HashMap::with_capacity_and_hasher(capacity / BITS as usize, Default::default()), + blocks: HashMap::with_capacity(capacity / BITS as usize), nbits: 0, } }