From c46de639609b1fff7b4c70a0841477bc3a8d8401 Mon Sep 17 00:00:00 2001 From: Dmitry Lavrenov Date: Tue, 7 Oct 2025 14:47:44 +0300 Subject: [PATCH] Remove redundant clippy allowance --- crates/pallet-fixed-validators-set/src/benchmarking.rs | 2 +- crates/pallet-fixed-validators-set/src/mock.rs | 3 --- crates/pallet-fixed-validators-set/src/tests.rs | 3 --- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/crates/pallet-fixed-validators-set/src/benchmarking.rs b/crates/pallet-fixed-validators-set/src/benchmarking.rs index d4d9ec1d0..18eba630a 100644 --- a/crates/pallet-fixed-validators-set/src/benchmarking.rs +++ b/crates/pallet-fixed-validators-set/src/benchmarking.rs @@ -1,7 +1,7 @@ //! The benchmarks for the pallet. // Allow integer and float arithmetic in tests. -#![allow(clippy::arithmetic_side_effects, clippy::float_arithmetic)] +#![allow(clippy::float_arithmetic)] use frame_benchmarking::benchmarks; use frame_support::pallet_prelude::*; diff --git a/crates/pallet-fixed-validators-set/src/mock.rs b/crates/pallet-fixed-validators-set/src/mock.rs index 4cbd732fb..e997bb580 100644 --- a/crates/pallet-fixed-validators-set/src/mock.rs +++ b/crates/pallet-fixed-validators-set/src/mock.rs @@ -1,8 +1,5 @@ //! The mock for the pallet. -// Allow simple integer_arithmetic in tests. -#![allow(clippy::arithmetic_side_effects)] - use frame_support::{ sp_io, sp_runtime::{ diff --git a/crates/pallet-fixed-validators-set/src/tests.rs b/crates/pallet-fixed-validators-set/src/tests.rs index f408e13c1..d68466953 100644 --- a/crates/pallet-fixed-validators-set/src/tests.rs +++ b/crates/pallet-fixed-validators-set/src/tests.rs @@ -1,8 +1,5 @@ //! The tests for the pallet. -// Allow simple integer arithmetic in tests. -#![allow(clippy::arithmetic_side_effects)] - use frame_support::{assert_noop, assert_ok, BoundedVec}; use crate::{