Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby committed Jan 28, 2024
1 parent 1bb9c24 commit 5221714
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/generate_block_traces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@ async fn main() -> anyhow::Result<()> {
// Construct the file writer to write the trace to
let tx_number = tx.transaction_index.unwrap().0[0];
let file_name = format!("traces/{}.json", tx_number);
let write = OpenOptions::new().write(true).create(true).open(file_name);
let write = OpenOptions::new()
.write(true)
.create(true)
.truncate(true)
.open(file_name);
let inner = Arc::new(Mutex::new(BufWriter::new(
write.expect("Failed to open file"),
)));
Expand Down

0 comments on commit 5221714

Please sign in to comment.