We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4ea5190 + 6b98dcc commit fc01a74Copy full SHA for fc01a74
library/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