From 0aa37ab518a852c46a1bac46d2a3c21b92fa814a Mon Sep 17 00:00:00 2001 From: iseki Date: Thu, 22 May 2014 16:02:05 +0900 Subject: Update syntax to pass the test --- crypto/hash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto') 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); -- cgit v1.2.3