Skip to content
Snippets Groups Projects
Unverified Commit d177e970 authored by bgallois's avatar bgallois
Browse files

fix clippy

parent 1f558d71
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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
......
......@@ -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> {
......
......@@ -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;
......
......@@ -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::*;
......
......@@ -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);
......
......@@ -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;
......
......@@ -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>(
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment