From 9eba2345c281461b74cf5287391eb96fd34afdc4 Mon Sep 17 00:00:00 2001 From: martinfridrich Date: Wed, 19 Jul 2023 18:36:58 +0200 Subject: [PATCH] staking: make clippy happy --- pallets/staking/src/integrations/democracy.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pallets/staking/src/integrations/democracy.rs b/pallets/staking/src/integrations/democracy.rs index 896543794..51c4e0863 100644 --- a/pallets/staking/src/integrations/democracy.rs +++ b/pallets/staking/src/integrations/democracy.rs @@ -90,8 +90,8 @@ where ) .unwrap(); Pallet::::initialize_staking(Origin::::Root.into()).unwrap(); - T::Currency::update_balance(T::HdxAssetId::get(), who, 1000_000_000_000_000i128).unwrap(); - Pallet::::stake(Origin::::Signed(who.clone()).into(), 1000_000_000_000_000u128).unwrap(); + T::Currency::update_balance(T::HdxAssetId::get(), who, 1_000_000_000_000_000i128).unwrap(); + Pallet::::stake(Origin::::Signed(who.clone()).into(), 1_000_000_000_000_000u128).unwrap(); } #[cfg(feature = "runtime-benchmarks")] @@ -103,8 +103,8 @@ where ) .unwrap(); Pallet::::initialize_staking(Origin::::Root.into()).unwrap(); - T::Currency::update_balance(T::HdxAssetId::get(), who, 1000_000_000_000_000i128).unwrap(); - Pallet::::stake(Origin::::Signed(who.clone()).into(), 1000_000_000_000_000u128).unwrap(); + T::Currency::update_balance(T::HdxAssetId::get(), who, 1_000_000_000_000_000i128).unwrap(); + Pallet::::stake(Origin::::Signed(who.clone()).into(), 1_000_000_000_000_000u128).unwrap(); } }