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 Apr 23, 2023
1 parent 0740695 commit d855c70
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -867,12 +867,16 @@ macro_rules! s(
)
};
($($t:tt)*) => {
$crate::s![@parse
::core::marker::PhantomData::<$crate::Ix0>,
::core::marker::PhantomData::<$crate::Ix0>,
[]
$($t)*
]
{
#[allow(clippy::reversed_empty_ranges)]
let slice = $crate::s![@parse
::core::marker::PhantomData::<$crate::Ix0>,
::core::marker::PhantomData::<$crate::Ix0>,
[]
$($t)*
];
slice
}
};
);

Expand Down

0 comments on commit d855c70

Please sign in to comment.