Skip to content

Commit

Permalink
clippy + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed May 15, 2024
1 parent de03c0a commit 94675c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 4 additions & 6 deletions crates/katana/executor/benches/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ use criterion::{criterion_group, criterion_main, BatchSize, BenchmarkGroup, Crit
use katana_executor::{SimulationFlag, StateProviderDb};
use katana_primitives::env::{BlockEnv, CfgEnv};
use katana_primitives::transaction::ExecutableTxWithHash;
use katana_provider::{test_utils, traits::state::StateFactoryProvider};
use katana_provider::test_utils;
use katana_provider::traits::state::StateFactoryProvider;
use pprof::criterion::{Output, PProfProfiler};

use crate::utils::{envs, tx};
Expand Down Expand Up @@ -35,8 +36,7 @@ fn blockifier<SF>(
) where
SF: StateFactoryProvider,
{
use katana_executor::implementation::blockifier::utils::block_context_from_envs;
use katana_executor::implementation::blockifier::utils::transact;
use katana_executor::implementation::blockifier::utils::{block_context_from_envs, transact};

// convert to blockifier block context
let block_context = block_context_from_envs(&block_envs.0, &block_envs.1);
Expand All @@ -54,9 +54,7 @@ fn blockifier<SF>(

(state, &block_context, &execution_flags, tx.clone())
},
|(mut state, block_context, flags, tx)| {
transact(&mut state, &block_context, &flags, tx)
},
|(mut state, block_context, flags, tx)| transact(&mut state, block_context, flags, tx),
BatchSize::SmallInput,
)
});
Expand Down
3 changes: 2 additions & 1 deletion crates/katana/executor/benches/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ use cairo_vm::vm::runners::builtin_runner::{
};
use katana_primitives::block::GasPrices;
use katana_primitives::env::{BlockEnv, CfgEnv, FeeTokenAddressses};
use katana_primitives::genesis::constant::DEFAULT_FEE_TOKEN_ADDRESS;
use katana_primitives::transaction::{ExecutableTxWithHash, InvokeTx, InvokeTxV1};
use katana_primitives::{genesis::constant::DEFAULT_FEE_TOKEN_ADDRESS, FieldElement};
use katana_primitives::FieldElement;
use starknet::macros::{felt, selector};

pub fn tx() -> ExecutableTxWithHash {
Expand Down

0 comments on commit 94675c5

Please sign in to comment.