Skip to content

Commit ec1a981

Browse files
committed
chore: remove unused generics from TracerEip3155
1 parent 6662e10 commit ec1a981

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

crates/inspector/src/eip3155.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use state::bytecode::opcode::OpCode;
1212
use std::io::Write;
1313

1414
/// [EIP-3155](https://eips.ethereum.org/EIPS/eip-3155) tracer [Inspector].
15-
pub struct TracerEip3155<CTX, INTR> {
15+
pub struct TracerEip3155 {
1616
output: Box<dyn Write>,
1717
gas_inspector: GasInspector,
1818
/// Print summary of the execution.
@@ -28,7 +28,6 @@ pub struct TracerEip3155<CTX, INTR> {
2828
skip: bool,
2929
include_memory: bool,
3030
memory: Option<String>,
31-
_phantom: core::marker::PhantomData<(CTX, INTR)>,
3231
}
3332

3433
// # Output
@@ -108,11 +107,7 @@ struct Summary {
108107
fork: Option<String>,
109108
}
110109

111-
impl<CTX, INTR> TracerEip3155<CTX, INTR>
112-
where
113-
CTX: ContextTr,
114-
INTR:,
115-
{
110+
impl TracerEip3155 {
116111
/// Creates a new EIP-3155 tracer with the given output writer, by first wrapping it in a
117112
/// [`BufWriter`](std::io::BufWriter).
118113
pub fn buffered(output: impl Write + 'static) -> Self {
@@ -136,7 +131,6 @@ where
136131
refunded: 0,
137132
mem_size: 0,
138133
skip: false,
139-
_phantom: Default::default(),
140134
}
141135
}
142136

@@ -182,7 +176,7 @@ where
182176
*skip = false;
183177
}
184178

185-
fn print_summary(&mut self, result: &InterpreterResult, context: &mut CTX) {
179+
fn print_summary(&mut self, result: &InterpreterResult, context: &mut impl ContextTr) {
186180
if !self.print_summary {
187181
return;
188182
}
@@ -214,7 +208,7 @@ impl CloneStack for Stack {
214208
}
215209
}
216210

217-
impl<CTX, INTR> Inspector<CTX, INTR> for TracerEip3155<CTX, INTR>
211+
impl<CTX, INTR> Inspector<CTX, INTR> for TracerEip3155
218212
where
219213
CTX: ContextTr,
220214
INTR: InterpreterTypes<Stack: StackTr + CloneStack>,

0 commit comments

Comments
 (0)