aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/generator.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama_derive/src/generator.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs
index 16209cd..c3f8e9a 100644
--- a/askama_derive/src/generator.rs
+++ b/askama_derive/src/generator.rs
@@ -279,9 +279,9 @@ impl<'a> Generator<'a> {
self.locals.insert(name.clone());
self.write(name);
}
- self.write(" in &");
+ self.write(" in (&");
self.visit_expr(iter);
- self.writeln(" {");
+ self.writeln(").into_iter() {");
self.writeln("_loop_indexes[_loop_cur] += 1;");
self.handle(body);