chore: use Display instead of Debug when printing internal errors (#6242)

This commit is contained in:
DaniPopes
2024-01-26 15:56:27 +01:00
committed by GitHub
parent 7db5edf46b
commit 556741abb0
7 changed files with 10 additions and 10 deletions

View File

@ -20,7 +20,7 @@ async fn trace_many_blocks() {
let mut stream = client.trace_block_buffered_unordered(15_000_000..=16_000_100, 20);
let now = Instant::now();
while let Some((err, block)) = stream.next_err().await {
eprintln!("Error tracing block {block:?}: {err:?}");
eprintln!("Error tracing block {block:?}: {err}");
}
println!("Traced all blocks in {:?}", now.elapsed());
}