Skip to content

Commit

Permalink
replace Into impl with From
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed Nov 28, 2024
1 parent 25139da commit 779c0ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/cli/src/default_scenarios/runconfig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ impl BuiltinScenarioConfig {
}
}

impl Into<TestConfig> for BuiltinScenarioConfig {
fn into(self) -> TestConfig {
match self {
Self::FillBlock {
impl From<BuiltinScenarioConfig> for TestConfig {
fn from(scenario: BuiltinScenarioConfig) -> Self {
match scenario {
BuiltinScenarioConfig::FillBlock {
max_gas_per_block,
num_txs,
sender,
Expand Down

0 comments on commit 779c0ac

Please sign in to comment.