Skip to content

Commit

Permalink
fix: broken feature flags (bluealloy#319)
Browse files Browse the repository at this point in the history
* fix: secp256k1 feature flag

* fix: std feature flag
  • Loading branch information
Wodann authored Jan 11, 2023
1 parent a05fb26 commit 6f065fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/precompiles/src/secp256k1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub const ECRECOVER: PrecompileAddress = PrecompileAddress(
Precompile::Standard(ec_recover_run as StandardPrecompileFn),
);

#[cfg(feature = "secp256k1")]
#[cfg(not(feature = "secp256k1"))]
#[allow(clippy::module_inception)]
mod secp256k1 {
use core::convert::TryFrom;
Expand All @@ -31,7 +31,7 @@ mod secp256k1 {
}
}

#[cfg(not(feature = "secp256k1"))]
#[cfg(feature = "secp256k1")]
#[allow(clippy::module_inception)]
mod secp256k1 {
use crate::B256;
Expand Down
1 change: 1 addition & 0 deletions crates/revm/src/inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pub mod noop;

/// All Inspectors implementations that revm has.
pub mod inspectors {
#[cfg(feature = "std")]
pub use super::customprinter::CustomPrintTracer;
pub use super::gas::GasInspector;
pub use super::noop::NoOpInspector;
Expand Down
5 changes: 2 additions & 3 deletions crates/revm/src/inspector/customprinter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
//! It is great tool if some debugging is needed.
//!
use crate::{
inspectors::GasInspector,
opcode::{self},
Bytes, CallInputs, CreateInputs, Database, EVMData, Gas, Inspector, Interpreter, Return, B160,
inspectors::GasInspector, opcode, Bytes, CallInputs, CreateInputs, Database, EVMData, Gas,
Inspector, Interpreter, Return, B160,
};
use hex;
#[derive(Clone, Default)]
Expand Down

0 comments on commit 6f065fd

Please sign in to comment.