aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authoriseki <[email protected]>2014-05-22 16:02:05 +0900
committeriseki <[email protected]>2014-05-22 16:02:05 +0900
commit0aa37ab518a852c46a1bac46d2a3c21b92fa814a (patch)
tree62a9975907dd1125eccb22a60733ff8fe23d0908 /crypto
parentUpdate travis.yaml to use nightlies (diff)
downloadrust-openssl-0aa37ab518a852c46a1bac46d2a3c21b92fa814a.tar.xz
rust-openssl-0aa37ab518a852c46a1bac46d2a3c21b92fa814a.zip
Update syntax to pass the test
Diffstat (limited to 'crypto')
-rw-r--r--crypto/hash.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/hash.rs b/crypto/hash.rs
index e3182b1b..8dd581c7 100644
--- a/crypto/hash.rs
+++ b/crypto/hash.rs
@@ -119,7 +119,7 @@ mod tests {
fn hash_test(hashtype: super::HashType, hashtest: &HashTest) {
let calced_raw = super::hash(hashtype, hashtest.input.as_slice());
- let calced = calced_raw.as_slice().to_hex();
+ let calced = calced_raw.as_slice().to_hex().into_owned();
if calced != hashtest.expected_output {
println!("Test failed - {} != {}", calced, hashtest.expected_output);