diff --git a/pallets/distance/src/benchmarking.rs b/pallets/distance/src/benchmarking.rs index cf11d85e33cc670cd7569a9c146849054010170c..91589bbb31873c4baa12589722e88192d464950a 100644 --- a/pallets/distance/src/benchmarking.rs +++ b/pallets/distance/src/benchmarking.rs @@ -15,6 +15,7 @@ // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. #![cfg(feature = "runtime-benchmarks")] +#![allow(clippy::multiple_bound_locations)] use super::*; @@ -26,7 +27,7 @@ use frame_support::traits::{Currency, OnFinalize}; use frame_system::pallet_prelude::BlockNumberFor; use frame_system::RawOrigin; use pallet_balances::Pallet as Balances; -use sp_runtime::traits::{Bounded, One}; +use sp_runtime::traits::Bounded; use sp_runtime::Perbill; use crate::Pallet; diff --git a/pallets/distance/src/types.rs b/pallets/distance/src/types.rs index 95ab967e2476983ea4b8f9b87ae23b8b3fb329b3..cb9f32924f8f2a2be96ba987fe06d7378886ff2f 100644 --- a/pallets/distance/src/types.rs +++ b/pallets/distance/src/types.rs @@ -18,7 +18,7 @@ pub use crate::{median::*, MAX_EVALUATIONS_PER_SESSION, MAX_EVALUATORS_PER_SESSI pub use sp_distance::ComputationResult; use codec::{Decode, Encode}; -use frame_support::{pallet_prelude::*, BoundedBTreeSet}; +use frame_support::pallet_prelude::*; use sp_runtime::Perbill; /// Status of the distance evaluation of an identity diff --git a/pallets/identity/src/traits.rs b/pallets/identity/src/traits.rs index ed8a2e2e44763c31ca798acdd9f690b39b491331..8031d50c96d4d273391f3755abc64025eef31331 100644 --- a/pallets/identity/src/traits.rs +++ b/pallets/identity/src/traits.rs @@ -16,7 +16,6 @@ use crate::*; use frame_support::pallet_prelude::*; -use frame_support::weights::Weight; /// A trait defining operations for checking if identity-related calls are allowed. pub trait CheckIdtyCallAllowed<T: Config> { diff --git a/pallets/oneshot-account/src/benchmarking.rs b/pallets/oneshot-account/src/benchmarking.rs index cf79d049413a018a17f12aa4561b09d383988259..fb389d414b5695b29a24f5638528f3f1bb32133a 100644 --- a/pallets/oneshot-account/src/benchmarking.rs +++ b/pallets/oneshot-account/src/benchmarking.rs @@ -15,13 +15,13 @@ // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. #![cfg(feature = "runtime-benchmarks")] +#![allow(clippy::multiple_bound_locations)] use super::*; use frame_benchmarking::v2::*; use frame_benchmarking::{account, whitelisted_caller}; use frame_support::pallet_prelude::IsType; -use frame_support::traits::Get; use frame_system::RawOrigin; use pallet_balances::Pallet as Balances; diff --git a/pallets/provide-randomness/src/benchmarking.rs b/pallets/provide-randomness/src/benchmarking.rs index 5f0ed8eedfa54ac9ea3905c9191f8df74bf157fc..b5cd3f11b1ab13c20b54adcac012860b3d8e032b 100644 --- a/pallets/provide-randomness/src/benchmarking.rs +++ b/pallets/provide-randomness/src/benchmarking.rs @@ -15,6 +15,7 @@ // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. #![cfg(feature = "runtime-benchmarks")] +#![allow(clippy::multiple_bound_locations)] use super::*; diff --git a/pallets/smith-members/src/impls.rs b/pallets/smith-members/src/impls.rs index 95a1e49dfd63d25acd45e8a5b5f7c983bad89aef..c4662164e457f4e95419aabd3042d928751c2ada 100644 --- a/pallets/smith-members/src/impls.rs +++ b/pallets/smith-members/src/impls.rs @@ -19,7 +19,6 @@ impl<T: Config> pallet_authority_members::OnIncomingMember<T::MemberId> for Pall } } -/// impl<T: Config> pallet_authority_members::OnNewSession for Pallet<T> { fn on_new_session(index: SessionIndex) { CurrentSession::<T>::put(index); diff --git a/pallets/universal-dividend/src/benchmarking.rs b/pallets/universal-dividend/src/benchmarking.rs index 8614441b3a2025c50ef9518a95d5e71f7f471723..6c127897111fddc521a6d471f2e93f5da52e0fb8 100644 --- a/pallets/universal-dividend/src/benchmarking.rs +++ b/pallets/universal-dividend/src/benchmarking.rs @@ -15,6 +15,7 @@ // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. #![cfg(feature = "runtime-benchmarks")] +#![allow(clippy::multiple_bound_locations)] use super::*; @@ -22,7 +23,6 @@ use core::num::NonZeroU16; use frame_benchmarking::v2::*; use frame_benchmarking::{account, whitelisted_caller}; use frame_support::pallet_prelude::IsType; -use frame_support::traits::Get; use frame_support::traits::StoredMap; use frame_system::RawOrigin; use pallet_balances::Pallet as Balances; diff --git a/pallets/universal-dividend/src/compute_claim_uds.rs b/pallets/universal-dividend/src/compute_claim_uds.rs index e932e8482d33441a5d3bc63c6df1ce38d16535fd..7d58edcea4bbdb5061eca67b188380c54045d492 100644 --- a/pallets/universal-dividend/src/compute_claim_uds.rs +++ b/pallets/universal-dividend/src/compute_claim_uds.rs @@ -15,7 +15,6 @@ // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. use super::UdIndex; -use core::iter::DoubleEndedIterator; use sp_arithmetic::traits::{AtLeast32BitUnsigned, Zero}; pub(super) fn compute_claim_uds<Balance: AtLeast32BitUnsigned>( diff --git a/primitives/distance/src/lib.rs b/primitives/distance/src/lib.rs index bf878cc9b6a201e456c463aaac6e05fa96a1008f..5b574aa168608b28a0efec82ed9620b65003cb67 100644 --- a/primitives/distance/src/lib.rs +++ b/primitives/distance/src/lib.rs @@ -22,8 +22,6 @@ use codec::{Decode, Encode}; use frame_support::pallet_prelude::RuntimeDebug; use scale_info::TypeInfo; -//#[cfg(feature = "std")] -//use serde::{Deserialize, Serialize}; use sp_inherents::{InherentData, InherentIdentifier, IsFatalError}; use sp_runtime::Perbill; use sp_std::vec::Vec;