aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
Diffstat (limited to 'askama_shared')
-rw-r--r--askama_shared/src/parser.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/askama_shared/src/parser.rs b/askama_shared/src/parser.rs
index accefd2..eff1779 100644
--- a/askama_shared/src/parser.rs
+++ b/askama_shared/src/parser.rs
@@ -162,10 +162,8 @@ named!(expr_path<Expr>, do_parse!(
(part)
)) >>
({
- let mut path = vec![ start ];
- for part in rest.iter() {
- path.push(part);
- }
+ let mut path = vec![start];
+ path.extend(rest);
Expr::Path(path)
})
));