Skip to content

Commit 66862c0

Browse files
committed
Gate inclusion of From<array> on feature 'ahash'
1 parent da19299 commit 66862c0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/map.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,6 +1581,7 @@ where
15811581
}
15821582

15831583
// The default hasher is used to match the std implementation signature
1584+
#[cfg(feature = "ahash")]
15841585
impl<K, V, A, const N: usize> From<[(K, V); N]> for HashMap<K, V, DefaultHashBuilder, A>
15851586
where
15861587
K: Eq + Hash,

src/set.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,7 @@ where
11601160
}
11611161

11621162
// The default hasher is used to match the std implementation signature
1163+
#[cfg(feature = "ahash")]
11631164
impl<T, A, const N: usize> From<[T; N]> for HashSet<T, DefaultHashBuilder, A>
11641165
where
11651166
T: Eq + Hash,

0 commit comments

Comments
 (0)