about summary refs log tree commit diff
path: root/src/libregex/vm.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libregex/vm.rs')
-rw-r--r--src/libregex/vm.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libregex/vm.rs b/src/libregex/vm.rs
index 1adaf9c92a6..6db07923c4d 100644
--- a/src/libregex/vm.rs
+++ b/src/libregex/vm.rs
@@ -204,7 +204,7 @@ impl<'r, 't> Nfa<'r, 't> {
                         return StepMatch
                     }
                     Submatches => {
-                        for (slot, val) in groups.mut_iter().zip(caps.iter()) {
+                        for (slot, val) in groups.iter_mut().zip(caps.iter()) {
                             *slot = *val;
                         }
                         return StepMatch
@@ -470,7 +470,7 @@ impl Threads {
                 *t.groups.get_mut(1) = groups[1];
             }
             (false, Submatches) => {
-                for (slot, val) in t.groups.mut_iter().zip(groups.iter()) {
+                for (slot, val) in t.groups.iter_mut().zip(groups.iter()) {
                     *slot = *val;
                 }
             }