Skip to content

Commit 6c1ec31

Browse files
committed
Fix up clippy attributes used in tests
1 parent 0b936b2 commit 6c1ec31

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed
File renamed without changes.

block-buffer/tests/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! `block-buffer` tests.
22
3-
#![allow(clippy::unwrap_used)]
4-
53
use block_buffer::{
64
EagerBuffer, LazyBuffer, ReadBuffer,
75
array::{

cmov/tests/core_impls.rs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
//! Tests for `Cmov`/`CmovEq` impls on `core` types.
22
3-
#![allow(
4-
trivial_numeric_casts,
5-
clippy::cast_possible_truncation,
6-
clippy::cast_sign_loss
7-
)]
8-
93
/// Write the tests for an integer type, given two unequal integers
104
macro_rules! int_tests {
115
($int:ident, $a:expr, $b:expr) => {
@@ -42,6 +36,11 @@ macro_rules! int_tests {
4236
}
4337

4438
#[test]
39+
#[allow(
40+
trivial_numeric_casts,
41+
clippy::cast_possible_truncation,
42+
clippy::cast_sign_loss
43+
)]
4544
fn cmoveq_works() {
4645
let mut o = 0u8;
4746

@@ -74,6 +73,11 @@ macro_rules! int_tests {
7473
}
7574

7675
#[test]
76+
#[allow(
77+
trivial_numeric_casts,
78+
clippy::cast_possible_truncation,
79+
clippy::cast_sign_loss
80+
)]
7781
fn cmovne_works() {
7882
let mut o = 0u8;
7983

ctutils/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
clippy::integer_division_remainder_used,
1111
clippy::panic
1212
)]
13-
#![cfg_attr(not(test), warn(clippy::unwrap_used))]
1413

1514
//! # API Design
1615
//!

zeroize_derive/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,6 @@ fn impl_zeroize_on_drop(input: &DeriveInput) -> TokenStream {
423423
}
424424

425425
#[cfg(test)]
426-
#[allow(clippy::unwrap_used)]
427426
mod tests {
428427
use super::*;
429428

0 commit comments

Comments
 (0)