Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: clippy
  • Loading branch information
DaniPopes committed Feb 15, 2024
commit 60ec2a286c536c18d47f8a00dc0539e85501226a
1 change: 1 addition & 0 deletions src/tracing/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ impl<W: Write> TraceWriter<W> {
let address = trace.address.to_checksum_buffer(None);

if trace.kind.is_any_create() {
#[allow(clippy::write_literal)] // TODO
write!(
self.writer,
"{trace_kind_style}{CALL}new{trace_kind_style:#} {label}@{address}",
Expand Down
6 changes: 6 additions & 0 deletions tests/it/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ pub struct TestEvm {
pub env: EnvWithHandlerCfg,
}

impl Default for TestEvm {
fn default() -> Self {
Self::new()
}
}

impl TestEvm {
pub fn new() -> Self {
let db = CacheDB::new(EmptyDB::default());
Expand Down
2 changes: 1 addition & 1 deletion tests/it/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ fn basic_trace_printing() {
}

// Without this `expect_test` fails on its own updated test output.
fn patch_output(s: &mut String) {
fn patch_output(s: &mut str) {
(unsafe { s.as_bytes_mut() })[0] = b'.';
}