Skip to content

Commit

Permalink
Also remove dead encode_hex_string function and remove entries from…
Browse files Browse the repository at this point in the history
… Cargo.toml
  • Loading branch information
bgw committed May 23, 2024
1 parent dfd815e commit 017a9b7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 16 deletions.
8 changes: 0 additions & 8 deletions Cargo.lock

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

2 changes: 0 additions & 2 deletions crates/turbo-tasks-hash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ bench = false
workspace = true

[dependencies]
base16 = "0.2.1"
hex = "0.4.3"
md4 = "0.10.1"
turbo-tasks-macros = { workspace = true }
twox-hash = "1.6.3"
5 changes: 0 additions & 5 deletions crates/turbo-tasks-hash/src/hex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,3 @@
pub fn encode_hex(n: u64) -> String {
format!("{:01$x}", n, std::mem::size_of::<u64>() * 2)
}

/// Encodes a byte slice into a hex string.
pub fn encode_hex_string(bytes: &[u8]) -> String {
hex::encode(bytes)
}
2 changes: 1 addition & 1 deletion crates/turbo-tasks-hash/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mod xxh3_hash64;

pub use crate::{
deterministic_hash::{DeterministicHash, DeterministicHasher},
hex::{encode_hex, encode_hex_string},
hex::encode_hex,
md4::hash_md4,
xxh3_hash64::{hash_xxh3_hash64, Xxh3Hash64Hasher},
};

0 comments on commit 017a9b7

Please sign in to comment.