diff --git a/src/slice.rs b/src/slice.rs index 0146d6dba..643e8c58e 100644 --- a/src/slice.rs +++ b/src/slice.rs @@ -867,12 +867,17 @@ macro_rules! s( ) }; ($($t:tt)*) => { - $crate::s![@parse - ::core::marker::PhantomData::<$crate::Ix0>, - ::core::marker::PhantomData::<$crate::Ix0>, - [] - $($t)* - ] + { + #[allow(clippy::reversed_empty_ranges)] + { + $crate::s![@parse + ::core::marker::PhantomData::<$crate::Ix0>, + ::core::marker::PhantomData::<$crate::Ix0>, + [] + $($t)* + ] + } + } }; );