Skip to content

Commit

Permalink
fix workaround false positive clippy lint reversed_empty_ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
ModProg committed May 24, 2023
1 parent 0740695 commit aff63a6
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)*
]
}
}
};
);

Expand Down

0 comments on commit aff63a6

Please sign in to comment.