Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Aideepakchaudhary committed Oct 23, 2024
1 parent fd7c8d8 commit c240b7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pallets/ddc-customers/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ benchmarks! {
whitelist_account!(user);
}: _(RawOrigin::Signed(user), cluster_id, bucket_params)
verify {
assert_eq!(Pallet::<T>::buckets_count(), 1);
assert_eq!(BucketsCount::<T>::get(), 1);
}

deposit {
Expand Down
2 changes: 1 addition & 1 deletion pallets/ddc-customers/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl<T: Config> OnRuntimeUpgrade for MigrateToV1<T> {
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::<T>::buckets_count();
let post_bucket_id = BucketsCount::<T>::get();
ensure!(
prev_bucket_id == post_bucket_id,
"the last bucket ID before and after the migration should be the same"
Expand Down

0 comments on commit c240b7a

Please sign in to comment.