summaryrefslogtreecommitdiffstats
path: root/src/md4.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/md4.rs')
-rw-r--r--src/md4.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/md4.rs b/src/md4.rs
index 6495ee2..2df6971 100644
--- a/src/md4.rs
+++ b/src/md4.rs
@@ -1,6 +1,3 @@
-#[cfg(test)]
-use rustc_serialize::hex::ToHex;
-
pub fn md4(bytes: &[u8]) -> [u8; 16] {
md4_with_state(
bytes,
@@ -185,7 +182,7 @@ fn test_md4() {
];
for &(input, expected) in tests.iter() {
println!("{:?}", input);
- let got = &md4(input)[..].to_hex();
+ let got = hex::encode(&md4(input)[..]);
assert_eq!(got, expected);
}
}