Skip to content

Commit aff63a6

Browse files
committed
fix workaround false positive clippy lint reversed_empty_ranges
1 parent 0740695 commit aff63a6

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/slice.rs

+11-6
Original file line numberDiff line numberDiff line change
@@ -867,12 +867,17 @@ macro_rules! s(
867867
)
868868
};
869869
($($t:tt)*) => {
870-
$crate::s![@parse
871-
::core::marker::PhantomData::<$crate::Ix0>,
872-
::core::marker::PhantomData::<$crate::Ix0>,
873-
[]
874-
$($t)*
875-
]
870+
{
871+
#[allow(clippy::reversed_empty_ranges)]
872+
{
873+
$crate::s![@parse
874+
::core::marker::PhantomData::<$crate::Ix0>,
875+
::core::marker::PhantomData::<$crate::Ix0>,
876+
[]
877+
$($t)*
878+
]
879+
}
880+
}
876881
};
877882
);
878883

0 commit comments

Comments
 (0)