src/maputil.rs

branch
dev
changeset 98
2e4517b55442
parent 94
1f19c6bbf07b
--- a/src/maputil.rs	Sun Apr 27 15:56:43 2025 -0500
+++ b/src/maputil.rs	Sun Apr 27 20:41:36 2025 -0500
@@ -3,7 +3,7 @@
 */
 
 use itertools::izip;
-#[cfg(feature = "nightly")]
+#[cfg(nightly)]
 use std::mem::MaybeUninit;
 
 /// Trait for a fixed-length container type.
@@ -352,7 +352,7 @@
 ///
 /// If `iter.next()` panicks, all items already yielded by the iterator are
 /// dropped.
-#[cfg(feature = "nightly")]
+#[cfg(nightly)]
 #[inline]
 pub(crate) fn collect_into_array_unchecked<T, I: Iterator<Item = T>, const N: usize>(
     mut iter: I,
@@ -413,7 +413,7 @@
     unreachable!("Something went wrong with iterator length")
 }
 
-#[cfg(not(feature = "nightly"))]
+#[cfg(not(nightly))]
 #[inline]
 pub(crate) fn collect_into_array_unchecked<T, I: Iterator<Item = T>, const N: usize>(
     iter: I,

mercurial