From aff63a6816329124198f5df49fb293ee3d9fd7f4 Mon Sep 17 00:00:00 2001 From: Roland Fredenhagen Date: Sun, 23 Apr 2023 09:39:00 +0200 Subject: [PATCH] fix workaround false positive clippy lint `reversed_empty_ranges` --- src/slice.rs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) 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)* + ] + } + } }; );