Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
pietroalbini authored and gitbot committed Feb 20, 2025
1 parent 8c7eee1 commit 31c3cd2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
5 changes: 1 addition & 4 deletions core/src/hash/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -753,10 +753,7 @@ pub struct BuildHasherDefault<H>(marker::PhantomData<fn() -> H>);
impl<H> BuildHasherDefault<H> {
/// Creates a new BuildHasherDefault for Hasher `H`.
#[stable(feature = "build_hasher_default_const_new", since = "1.85.0")]
#[rustc_const_stable(
feature = "build_hasher_default_const_new",
since = "1.85.0"
)]
#[rustc_const_stable(feature = "build_hasher_default_const_new", since = "1.85.0")]
pub const fn new() -> Self {
BuildHasherDefault(marker::PhantomData)
}
Expand Down
5 changes: 1 addition & 4 deletions std/src/collections/hash/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,7 @@ impl<K, V, S> HashMap<K, V, S> {
/// ```
#[inline]
#[stable(feature = "hashmap_build_hasher", since = "1.7.0")]
#[rustc_const_stable(
feature = "const_collections_with_hasher",
since = "1.85.0"
)]
#[rustc_const_stable(feature = "const_collections_with_hasher", since = "1.85.0")]
pub const fn with_hasher(hash_builder: S) -> HashMap<K, V, S> {
HashMap { base: base::HashMap::with_hasher(hash_builder) }
}
Expand Down
5 changes: 1 addition & 4 deletions std/src/collections/hash/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,7 @@ impl<T, S> HashSet<T, S> {
/// ```
#[inline]
#[stable(feature = "hashmap_build_hasher", since = "1.7.0")]
#[rustc_const_stable(
feature = "const_collections_with_hasher",
since = "1.85.0"
)]
#[rustc_const_stable(feature = "const_collections_with_hasher", since = "1.85.0")]
pub const fn with_hasher(hasher: S) -> HashSet<T, S> {
HashSet { base: base::HashSet::with_hasher(hasher) }
}
Expand Down

0 comments on commit 31c3cd2

Please sign in to comment.