Skip to content

Commit e6359d4

Browse files
rouge8cuviper
andauthored
Apply suggestions from code review
Co-authored-by: Josh Stone <[email protected]>
1 parent 981cdf9 commit e6359d4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/map.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ where
13421342
}
13431343
}
13441344

1345-
#[cfg(all(rustc_1_51))]
1345+
#[cfg(rustc_1_51)]
13461346
impl<K, V, const N: usize> From<[(K, V); N]> for IndexMap<K, V, RandomState>
13471347
where
13481348
K: Hash + Eq,
@@ -1857,7 +1857,7 @@ mod tests {
18571857
}
18581858

18591859
#[test]
1860-
#[cfg(all(rustc_1_51))]
1860+
#[cfg(rustc_1_51)]
18611861
fn from_array() {
18621862
let map = IndexMap::from([(1, 2), (3, 4)]);
18631863
let mut expected = IndexMap::new();

src/set.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ where
840840
}
841841
}
842842

843-
#[cfg(all(rustc_1_51))]
843+
#[cfg(rustc_1_51)]
844844
impl<T, const N: usize> From<[T; N]> for IndexSet<T, RandomState>
845845
where
846846
T: Eq + Hash,
@@ -1728,7 +1728,7 @@ mod tests {
17281728
}
17291729

17301730
#[test]
1731-
#[cfg(all(rustc_1_51))]
1731+
#[cfg(rustc_1_51)]
17321732
fn from_array() {
17331733
let set1 = IndexSet::from([1, 2, 3, 4]);
17341734
let set2: IndexSet<_> = [1, 2, 3, 4].into();

0 commit comments

Comments
 (0)