Skip to content

Commit 6410c4e

Browse files
committed
Silence two clippy warnings
1 parent 2108aad commit 6410c4e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/volatile_ptr/tests.rs

+1
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ fn test_bounds_check_1() {
137137
fn test_bounds_check_2() {
138138
let val: &mut [u32] = &mut [1, 2, 3];
139139
let volatile = unsafe { VolatilePtr::new(NonNull::from(val)) };
140+
#[allow(clippy::reversed_empty_ranges)]
140141
volatile.index(2..1);
141142
}
142143

src/volatile_ptr/unstable.rs

+1
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ impl<'a, T, A> VolatilePtr<'a, [T], A> {
284284
/// # Panics
285285
///
286286
/// Panics if `N` is 0.
287+
#[allow(clippy::type_complexity)]
287288
pub fn as_chunks<const N: usize>(
288289
self,
289290
) -> (VolatilePtr<'a, [[T; N]], A>, VolatilePtr<'a, [T], A>)

0 commit comments

Comments
 (0)