Skip to content

Commit

Permalink
remove nohash_hasher dep
Browse files Browse the repository at this point in the history
  • Loading branch information
tjjfvi committed May 27, 2024
1 parent cc493ee commit 06f5fbb
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
7 changes: 0 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"monomorphized",
"newtype",
"nilary",
"nohash",
"nomicon",
"oper",
"outdir",
Expand Down
3 changes: 1 addition & 2 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ path = "src/runtime.rs"

[dependencies]
parking_lot = "0.12.2"
nohash-hasher = { version = "0.2.0", optional = true }

hvm64-util = { path = "../util", default-features = false }

[features]
std = ["hvm64-util/std", "dep:nohash-hasher"]
std = ["hvm64-util/std"]
trace = []

[lints]
Expand Down
3 changes: 0 additions & 3 deletions runtime/src/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ use super::*;
#[must_use]
pub struct Addr(pub usize);

#[cfg(feature = "std")]
impl nohash_hasher::IsEnabled for Addr {}

impl fmt::Debug for Addr {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{:012x?}", self.0)
Expand Down

0 comments on commit 06f5fbb

Please sign in to comment.