aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/hash.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/hash.rs')
-rw-r--r--src/crypto/hash.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crypto/hash.rs b/src/crypto/hash.rs
index b5d0eab5..2a181526 100644
--- a/src/crypto/hash.rs
+++ b/src/crypto/hash.rs
@@ -4,6 +4,7 @@ use std::io;
use ffi;
+#[deriving(Copy)]
pub enum HashType {
MD5,
SHA1,
@@ -134,7 +135,7 @@ mod tests {
}
fn compare(calced_raw: Vec<u8>, hashtest: &HashTest) {
- let calced = calced_raw.as_slice().to_hex().into_string();
+ let calced = calced_raw.as_slice().to_hex().to_string();
if calced != hashtest.expected_output {
println!("Test failed - {} != {}", calced, hashtest.expected_output);