Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel-Petrov committed Mar 13, 2024
1 parent be3edb3 commit 956df85
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/actions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ pub async fn shoot(config: GatlingConfig) -> color_eyre::Result<()> {
.with_block_range(shooter.rpc_client(), start_block, end_block)
.await?;

let report_path = shooter.config().report.output_location.with_extension("json");
let report_path = shooter
.config()
.report
.output_location
.with_extension("json");

let writer = std::fs::File::create(report_path)?;
serde_json::to_writer_pretty(writer, &global_report)?;
Expand Down

0 comments on commit 956df85

Please sign in to comment.