Skip to content

Commit 65bea54

Browse files
committed
Cargo.toml: allow clippy::needless_range_loop
1 parent fd1cf9d commit 65bea54

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ missing_errors_doc = "warn"
4646
missing_panics_doc = "warn"
4747
mod_module_files = "warn"
4848
must_use_candidate = "warn"
49+
needless_range_loop = "allow"
4950
implicit_saturating_sub = "warn"
5051
panic_in_result_fn = "warn"
5152
ptr_as_ptr = "warn"

inout/src/inout.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ impl<N: ArraySize> InOut<'_, '_, Array<u8, N>> {
186186
/// # Panics
187187
/// If `data` length is not equal to the buffer length.
188188
#[inline(always)]
189-
#[allow(clippy::needless_range_loop)]
190189
pub fn xor_in2out(&mut self, data: &Array<u8, N>) {
191190
unsafe {
192191
let input = ptr::read(self.in_ptr);
@@ -210,7 +209,6 @@ where
210209
/// # Panics
211210
/// If `data` length is not equal to the buffer length.
212211
#[inline(always)]
213-
#[allow(clippy::needless_range_loop)]
214212
pub fn xor_in2out(&mut self, data: &Array<Array<u8, N>, M>) {
215213
unsafe {
216214
let input = ptr::read(self.in_ptr);

inout/src/inout_buf.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ impl InOutBuf<'_, '_, u8> {
267267
/// # Panics
268268
/// If `data` length is not equal to the buffer length.
269269
#[inline(always)]
270-
#[allow(clippy::needless_range_loop)]
271270
pub fn xor_in2out(&mut self, data: &[u8]) {
272271
assert_eq!(self.len(), data.len());
273272
unsafe {

0 commit comments

Comments
 (0)