Skip to content

Commit

Permalink
chore: make clippy happy (#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jan 29, 2024
1 parent 0c8c4f8 commit 7fe5dfa
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 7fe5dfa

Please sign in to comment.