From cb48fd814f5b87a9752e89f74bd5d0233a93beb5 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 24 Jul 2018 15:56:07 +0100 Subject: Take reference to indexed data --- askama_derive/src/generator.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'askama_derive') diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 02993cc..8c95386 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -772,6 +772,7 @@ impl<'a> Generator<'a> { } fn visit_index(&mut self, obj: &Expr, key: &Expr, code: &mut String) -> DisplayWrap { + code.push_str("&"); self.visit_expr(obj, code); code.push_str("["); self.visit_expr(key, code); -- cgit