From 16610417beea49918613d548ca1945457baa1fef Mon Sep 17 00:00:00 2001 From: Lokathor Date: Tue, 5 Sep 2023 13:26:08 -0600 Subject: [PATCH] tell clippy to quiet down --- tests/cast_slice_tests.rs | 3 +++ tests/checked_tests.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/cast_slice_tests.rs b/tests/cast_slice_tests.rs index f1297f6..ce6dedc 100644 --- a/tests/cast_slice_tests.rs +++ b/tests/cast_slice_tests.rs @@ -1,3 +1,6 @@ +#![allow(clippy::unnecessary_cast)] +#![allow(clippy::manual_slice_size_calculation)] + use core::mem::size_of; use bytemuck::*; diff --git a/tests/checked_tests.rs b/tests/checked_tests.rs index 77d8785..c7c5640 100644 --- a/tests/checked_tests.rs +++ b/tests/checked_tests.rs @@ -1,3 +1,6 @@ +#![allow(clippy::unnecessary_cast)] +#![allow(clippy::manual_slice_size_calculation)] + use core::{ mem::size_of, num::{NonZeroU32, NonZeroU8},