aboutsummaryrefslogtreecommitdiff
path: root/hash.rs
diff options
context:
space:
mode:
authorMiloš Hadžić <[email protected]>2013-08-06 03:57:03 +0200
committerMiloš Hadžić <[email protected]>2013-08-06 03:57:03 +0200
commit61d7c3ff3a009204cba3ab6cccc6f70cc2cd1eaf (patch)
tree7351dffbd2d6bbf35112d2a740881a7bc4530b62 /hash.rs
parentUpdate to latest master (0.8-pre 4989799) (diff)
downloadrust-openssl-61d7c3ff3a009204cba3ab6cccc6f70cc2cd1eaf.tar.xz
rust-openssl-61d7c3ff3a009204cba3ab6cccc6f70cc2cd1eaf.zip
Update syntax for latest Rust master (rust 0.8-pre bbda3fa).
Diffstat (limited to 'hash.rs')
-rw-r--r--hash.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/hash.rs b/hash.rs
index c55515d1..88f75f67 100644
--- a/hash.rs
+++ b/hash.rs
@@ -151,7 +151,7 @@ mod tests {
HashTest(~"A510CD18F7A56852EB0319", ~"577E216843DD11573574D3FB209B97D8"),
HashTest(~"AAED18DBE8938C19ED734A8D", ~"6F80FB775F27E0A4CE5C2F42FC72C5F1")];
- for tests.iter().advance |test| {
+ for test in tests.iter() {
hash_test(MD5, test);
}
}
@@ -163,7 +163,7 @@ mod tests {
HashTest(~"616263", ~"A9993E364706816ABA3E25717850C26C9CD0D89D"),
];
- for tests.iter().advance |test| {
+ for test in tests.iter() {
hash_test(SHA1, test);
}
}
@@ -174,7 +174,7 @@ mod tests {
HashTest(~"616263", ~"BA7816BF8F01CFEA414140DE5DAE2223B00361A396177A9CB410FF61F20015AD")
];
- for tests.iter().advance |test| {
+ for test in tests.iter() {
hash_test(SHA256, test);
}
}