From ce23d4377a5202f67c25ff2313ed03f495603311 Mon Sep 17 00:00:00 2001 From: wborgeaud Date: Wed, 27 Jul 2022 11:27:04 +0200 Subject: [PATCH] Minor --- evm/src/cpu/kernel/interpreter.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/evm/src/cpu/kernel/interpreter.rs b/evm/src/cpu/kernel/interpreter.rs index ebd4b949..0634b864 100644 --- a/evm/src/cpu/kernel/interpreter.rs +++ b/evm/src/cpu/kernel/interpreter.rs @@ -36,7 +36,7 @@ impl InterpreterMemory { } // TODO: Remove `code` and `stack` fields as they are contained in `memory`. -pub(crate) struct Interpreter<'a> { +pub struct Interpreter<'a> { code: &'a [u8], jumpdests: Vec, offset: usize, @@ -468,8 +468,6 @@ fn find_jumpdests(code: &[u8]) -> Vec { mod tests { use std::collections::HashMap; - use hex_literal::hex; - use crate::cpu::kernel::interpreter::{run, Interpreter}; use crate::memory::segments::Segment;