Skip to content

Commit

Permalink
build check no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita committed Apr 7, 2024
1 parent 63ffb17 commit 0222cc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions crates/interpreter/src/opcode/eof_printer.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use self::utility::read_i16;
use super::*;
use revm_primitives::hex;

#[cfg(feature = "std")]
pub fn print_eof_code(code: &[u8]) {
use super::*;
use crate::instructions::utility::read_i16;
use revm_primitives::hex;

// We can check validity and jump destinations in one pass.
let mut i = 0;
while i < code.len() {
Expand Down Expand Up @@ -58,6 +58,7 @@ pub fn print_eof_code(code: &[u8]) {
#[cfg(test)]
mod test {
use super::*;
use revm_primitives::hex;

#[test]
fn sanity_test() {
Expand Down
2 changes: 1 addition & 1 deletion crates/primitives/src/bytecode/eof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub use types_section::TypesSection;

use crate::Bytes;
use core::cmp::min;
use std::vec::Vec;
use std::{vec, vec::Vec};

/// EOF - Ethereum Object Format.
///
Expand Down

0 comments on commit 0222cc0

Please sign in to comment.