diff options
author | Bastien Orivel <eijebong@bananium.fr> | 2018-01-01 17:38:38 +0100 |
---|---|---|
committer | Bastien Orivel <eijebong@bananium.fr> | 2018-01-01 17:38:38 +0100 |
commit | bb5ab2b43f4346c411a087258a8e76788b9f5101 (patch) | |
tree | 0413df33f9bc1e486e9c98b5b8e7c22807a155bf /openssl/src/sign.rs | |
parent | d3fff74ae8ab092a77050ba210b942e86c3bd9ff (diff) | |
download | rust-openssl-bb5ab2b43f4346c411a087258a8e76788b9f5101.zip |
Bump hex to 0.3
The `to_hex` method has been removed and `hex::encode` should be used
instead.
Diffstat (limited to 'openssl/src/sign.rs')
-rw-r--r-- | openssl/src/sign.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/sign.rs b/openssl/src/sign.rs index f5f57a97..1693f6ff 100644 --- a/openssl/src/sign.rs +++ b/openssl/src/sign.rs @@ -382,7 +382,7 @@ unsafe fn EVP_DigestVerifyFinal( #[cfg(test)] mod test { - use hex::{FromHex, ToHex}; + use hex::{self, FromHex}; use std::iter; use hash::MessageDigest; @@ -418,7 +418,7 @@ mod test { signer.update(&Vec::from_hex(INPUT).unwrap()).unwrap(); let result = signer.sign_to_vec().unwrap(); - assert_eq!(result.to_hex(), SIGNATURE); + assert_eq!(hex::encode(result), SIGNATURE); } #[test] |