From c240b7a41b2d5b37618df1185e3071a7ad68efca Mon Sep 17 00:00:00 2001 From: Aideepakchaudhary Date: Wed, 23 Oct 2024 16:30:13 +0530 Subject: [PATCH] fix clippy --- pallets/ddc-customers/src/benchmarking.rs | 2 +- pallets/ddc-customers/src/migration.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pallets/ddc-customers/src/benchmarking.rs b/pallets/ddc-customers/src/benchmarking.rs index 59585d476..32fbccd20 100644 --- a/pallets/ddc-customers/src/benchmarking.rs +++ b/pallets/ddc-customers/src/benchmarking.rs @@ -54,7 +54,7 @@ benchmarks! { whitelist_account!(user); }: _(RawOrigin::Signed(user), cluster_id, bucket_params) verify { - assert_eq!(Pallet::::buckets_count(), 1); + assert_eq!(BucketsCount::::get(), 1); } deposit { diff --git a/pallets/ddc-customers/src/migration.rs b/pallets/ddc-customers/src/migration.rs index cd2e9c6b0..5a66c8dd9 100644 --- a/pallets/ddc-customers/src/migration.rs +++ b/pallets/ddc-customers/src/migration.rs @@ -97,7 +97,7 @@ impl OnRuntimeUpgrade for MigrateToV1 { let (prev_bucket_id, prev_count): (u64, u64) = Decode::decode(&mut &prev_state[..]).expect("pre_upgrade provides a valid state; qed"); - let post_bucket_id = Pallet::::buckets_count(); + let post_bucket_id = BucketsCount::::get(); ensure!( prev_bucket_id == post_bucket_id, "the last bucket ID before and after the migration should be the same"