diff options
| author | Valerii Hiora <[email protected]> | 2015-01-02 13:50:52 +0200 |
|---|---|---|
| committer | Valerii Hiora <[email protected]> | 2015-01-02 13:51:26 +0200 |
| commit | afffffc730729248582a2231afdbd9ddeedcc343 (patch) | |
| tree | a4846532626bebcf92a8316d9f4f20a51e0c2070 /src | |
| parent | Release v0.2.10 (diff) | |
| download | rust-openssl-afffffc730729248582a2231afdbd9ddeedcc343.tar.xz rust-openssl-afffffc730729248582a2231afdbd9ddeedcc343.zip | |
Array syntax fallout
Diffstat (limited to 'src')
| -rw-r--r-- | src/crypto/hmac.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crypto/hmac.rs b/src/crypto/hmac.rs index aab0c014..9e8b6361 100644 --- a/src/crypto/hmac.rs +++ b/src/crypto/hmac.rs @@ -78,7 +78,7 @@ mod tests { #[test] fn test_hmac_md5() { // test vectors from RFC 2202 - let tests: [(Vec<u8>, Vec<u8>, Vec<u8>), ..7] = [ + let tests: [(Vec<u8>, Vec<u8>, Vec<u8>); 7] = [ (Vec::from_elem(16, 0x0b_u8), b"Hi There".to_vec(), "9294727a3638bb1c13f48ef8158bfc9d".from_hex().unwrap()), (b"Jefe".to_vec(), @@ -111,7 +111,7 @@ mod tests { #[test] fn test_hmac_sha1() { // test vectors from RFC 2202 - let tests: [(Vec<u8>, Vec<u8>, Vec<u8>), ..7] = [ + let tests: [(Vec<u8>, Vec<u8>, Vec<u8>); 7] = [ (Vec::from_elem(20, 0x0b_u8), b"Hi There".to_vec(), "b617318655057264e28bc0b6fb378c8ef146be00".from_hex().unwrap()), (b"Jefe".to_vec(), @@ -143,7 +143,7 @@ mod tests { fn test_sha2(ty: HashType, results: &[Vec<u8>]) { // test vectors from RFC 4231 - let tests: [(Vec<u8>, Vec<u8>), ..6] = [ + let tests: [(Vec<u8>, Vec<u8>); 6] = [ (Vec::from_elem(20, 0x0b_u8), b"Hi There".to_vec()), (b"Jefe".to_vec(), b"what do ya want for nothing?".to_vec()), |