aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/crypto
diff options
context:
space:
mode:
authorKevin Butler <[email protected]>2015-02-20 21:04:01 +0000
committerKevin Butler <[email protected]>2015-02-20 21:04:01 +0000
commitcb0e1688c8aa2e07a917851c829b24e4528d1282 (patch)
tree6a9951abe98a6d8eabfbd1a5723ba561014e7491 /openssl/src/crypto
parentUnique<T> now derefs to *mut T (diff)
downloadrust-openssl-cb0e1688c8aa2e07a917851c829b24e4528d1282.tar.xz
rust-openssl-cb0e1688c8aa2e07a917851c829b24e4528d1282.zip
Update depreciated code
Diffstat (limited to 'openssl/src/crypto')
-rw-r--r--openssl/src/crypto/hmac.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/openssl/src/crypto/hmac.rs b/openssl/src/crypto/hmac.rs
index b7d5df54..55007ceb 100644
--- a/openssl/src/crypto/hmac.rs
+++ b/openssl/src/crypto/hmac.rs
@@ -253,7 +253,7 @@ mod tests {
];
let mut h = HMAC::new(MD5, &*tests[0].0);
- for i in 0..100us {
+ for i in 0..100usize {
let test = &tests[i % 2];
test_hmac_recycle(&mut h, test);
}
@@ -351,7 +351,7 @@ mod tests {
];
let mut h = HMAC::new(SHA1, &*tests[0].0);
- for i in 0..100us {
+ for i in 0..100usize {
let test = &tests[i % 2];
test_hmac_recycle(&mut h, test);
}
@@ -382,7 +382,7 @@ mod tests {
// recycle test
let mut h = HMAC::new(ty, &*tests[5].0);
- for i in 0..100us {
+ for i in 0..100usize {
let test = &tests[4 + i % 2];
let tup = (test.0.clone(), test.1.clone(), results[4 + i % 2].clone());
test_hmac_recycle(&mut h, &tup);