Skip to content

Commit

Permalink
rust fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadkaouk committed Jan 26, 2024
1 parent 851bad5 commit e2a5b3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion frame/evm/precompile/clear-storage/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ where
deleted_entries += 1;
if deleted_entries >= limit {
// Check if there are no remaining entries. If there aren't any, clear the contract.
handle.record_db_read::<Runtime>(ACCOUNT_STORAGE_PROOF_SIZE as usize)?;
handle
.record_db_read::<Runtime>(ACCOUNT_STORAGE_PROOF_SIZE as usize)?;
if iter.next().is_none() {
// We perform an additional iteration at the end because we cannot determine the end of
// the iteration in advance. Therefore, we reimburse the cost of this last iteration
Expand Down
6 changes: 2 additions & 4 deletions frame/evm/precompile/clear-storage/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use crate::{StorageCleanerPrecompile, StorageCleanerPrecompileCall};
use frame_support::{parameter_types, weights::Weight};
use pallet_evm::{EnsureAddressNever, EnsureAddressRoot, IdentityAddressMapping};
use precompile_utils::{testing::*, precompile_set::*};
use precompile_utils::{precompile_set::*, testing::*};
use sp_core::{ConstU32, H256, U256};
use sp_runtime::{
traits::{BlakeTwo256, IdentityLookup},
Expand Down Expand Up @@ -150,9 +150,7 @@ pub(crate) struct ExtBuilder {

impl Default for ExtBuilder {
fn default() -> Self {
Self {
balances: vec![],
}
Self { balances: vec![] }
}
}

Expand Down

0 comments on commit e2a5b3a

Please sign in to comment.