Skip to content

Commit fecc5ff

Browse files
pietroalbinigitbot
authored and
gitbot
committed
fmt
1 parent 35ea232 commit fecc5ff

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

core/src/hash/mod.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -753,10 +753,7 @@ pub struct BuildHasherDefault<H>(marker::PhantomData<fn() -> H>);
753753
impl<H> BuildHasherDefault<H> {
754754
/// Creates a new BuildHasherDefault for Hasher `H`.
755755
#[stable(feature = "build_hasher_default_const_new", since = "1.85.0")]
756-
#[rustc_const_stable(
757-
feature = "build_hasher_default_const_new",
758-
since = "1.85.0"
759-
)]
756+
#[rustc_const_stable(feature = "build_hasher_default_const_new", since = "1.85.0")]
760757
pub const fn new() -> Self {
761758
BuildHasherDefault(marker::PhantomData)
762759
}

std/src/collections/hash/map.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,7 @@ impl<K, V, S> HashMap<K, V, S> {
296296
/// ```
297297
#[inline]
298298
#[stable(feature = "hashmap_build_hasher", since = "1.7.0")]
299-
#[rustc_const_stable(
300-
feature = "const_collections_with_hasher",
301-
since = "1.85.0"
302-
)]
299+
#[rustc_const_stable(feature = "const_collections_with_hasher", since = "1.85.0")]
303300
pub const fn with_hasher(hash_builder: S) -> HashMap<K, V, S> {
304301
HashMap { base: base::HashMap::with_hasher(hash_builder) }
305302
}

std/src/collections/hash/set.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,7 @@ impl<T, S> HashSet<T, S> {
388388
/// ```
389389
#[inline]
390390
#[stable(feature = "hashmap_build_hasher", since = "1.7.0")]
391-
#[rustc_const_stable(
392-
feature = "const_collections_with_hasher",
393-
since = "1.85.0"
394-
)]
391+
#[rustc_const_stable(feature = "const_collections_with_hasher", since = "1.85.0")]
395392
pub const fn with_hasher(hasher: S) -> HashSet<T, S> {
396393
HashSet { base: base::HashSet::with_hasher(hasher) }
397394
}

0 commit comments

Comments
 (0)