aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2014-05-23 19:57:23 -0700
committerSteven Fackler <[email protected]>2014-05-23 19:57:23 -0700
commitc0a964fc7b5f47c47ccf6fa59cb440f5e9bbf99b (patch)
tree62a9975907dd1125eccb22a60733ff8fe23d0908 /crypto
parentUpdate travis.yaml to use nightlies (diff)
parentUpdate syntax to pass the test (diff)
downloadrust-openssl-c0a964fc7b5f47c47ccf6fa59cb440f5e9bbf99b.tar.xz
rust-openssl-c0a964fc7b5f47c47ccf6fa59cb440f5e9bbf99b.zip
Merge pull request #14 from iseki-masaya/update-syntax
Update syntax to pass the tests
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);