We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 621aec0 + eeed6a7 commit 4344de1Copy full SHA for 4344de1
std/src/collections/hash/set.rs
@@ -144,7 +144,7 @@ impl<T> HashSet<T, RandomState> {
144
#[must_use]
145
#[stable(feature = "rust1", since = "1.0.0")]
146
pub fn with_capacity(capacity: usize) -> HashSet<T, RandomState> {
147
- HashSet { base: base::HashSet::with_capacity_and_hasher(capacity, Default::default()) }
+ HashSet::with_capacity_and_hasher(capacity, Default::default())
148
}
149
150
0 commit comments