diff options
Diffstat (limited to 'crypto')
| -rw-r--r-- | crypto/hash.rs | 2 |
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); |