changeset 74:15032c4aa33a

Fix compiler warning
author Lewin Bormann <lbo@spheniscida.de>
date Mon, 17 Feb 2020 20:36:35 +0100
parents 0ca6749edbb1
children 1e01c3c381cf
files src/state.rs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/state.rs	Sun Sep 01 22:15:03 2019 +0200
+++ b/src/state.rs	Mon Feb 17 20:36:35 2020 +0100
@@ -107,7 +107,7 @@
         }
         visited.insert(current);
 
-        for next in [stateg[current].out.clone(), stateg[current].out1.clone()].into_iter() {
+        for next in [stateg[current].out.clone(), stateg[current].out1.clone()].iter() {
             if let &Some(nextid) = next {
                 let o = &stateg[nextid];
                 write!(