aboutsummaryrefslogtreecommitdiff
path: root/hash.rs
diff options
context:
space:
mode:
authorKevin Ballard <[email protected]>2013-05-29 23:42:07 -0700
committerKevin Ballard <[email protected]>2013-05-29 23:42:07 -0700
commit2eba04e579048bb33a7a99cb738d5d9118909026 (patch)
tree624777ef967533e7fcb40575a55de4058a37ee68 /hash.rs
parentUpdate for current incoming (diff)
downloadrust-openssl-2eba04e579048bb33a7a99cb738d5d9118909026.tar.xz
rust-openssl-2eba04e579048bb33a7a99cb738d5d9118909026.zip
Update for latest incoming (3a3bf8b)
Diffstat (limited to 'hash.rs')
-rw-r--r--hash.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/hash.rs b/hash.rs
index bd19f333..be8fb9a6 100644
--- a/hash.rs
+++ b/hash.rs
@@ -1,4 +1,5 @@
use std::libc::c_uint;
+use std::{libc,vec,ptr};
pub enum HashType {
MD5,
@@ -108,6 +109,7 @@ mod tests {
use super::*;
use hex::FromHex;
use hex::ToHex;
+ use std::vec;
struct HashTest {
input: ~[u8],
@@ -125,7 +127,7 @@ mod tests {
let calced = calced_raw.to_hex();
if calced != hashtest.expected_output {
- io::println(fmt!("Test failed - %s != %s", calced, hashtest.expected_output));
+ println(fmt!("Test failed - %s != %s", calced, hashtest.expected_output));
}
assert!(calced == hashtest.expected_output);