about summary refs log tree commit diff
path: root/src/libextra/crypto/sha2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libextra/crypto/sha2.rs')
-rw-r--r--src/libextra/crypto/sha2.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libextra/crypto/sha2.rs b/src/libextra/crypto/sha2.rs
index dfefe9779d1..27612b00f61 100644
--- a/src/libextra/crypto/sha2.rs
+++ b/src/libextra/crypto/sha2.rs
@@ -939,7 +939,7 @@ mod tests {
 
     fn test_hash<D: Digest>(sh: &mut D, tests: &[Test]) {
         // Test that it works when accepting the message all at once
-        for tests.iter().advance() |t| {
+        foreach t in tests.iter() {
             sh.input_str(t.input);
 
             let out_str = sh.result_str();
@@ -949,7 +949,7 @@ mod tests {
         }
 
         // Test that it works when accepting the message in pieces
-        for tests.iter().advance() |t| {
+        foreach t in tests.iter() {
             let len = t.input.len();
             let mut left = len;
             while left > 0u {