aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-11-11 21:22:56 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-11-11 21:22:56 +0100
commit75098f3561aa4dc0e030ee08d8bb85a49d6ba784 (patch)
tree168cfacaace98720d1eafb31f30d0c9f55a3a36d /askama_derive/src
parent5111818c67040f82515ab872f98522f73d19c36b (diff)
downloadaskama-75098f3561aa4dc0e030ee08d8bb85a49d6ba784.tar.gz
askama-75098f3561aa4dc0e030ee08d8bb85a49d6ba784.tar.bz2
askama-75098f3561aa4dc0e030ee08d8bb85a49d6ba784.zip
Code style tweaks
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 e52a820..38eca55 100644
--- a/askama_derive/src/generator.rs
+++ b/askama_derive/src/generator.rs
@@ -660,7 +660,7 @@ impl<'a> Generator<'a> {
let id = self.named;
self.named += 1;
- buf_expr.write(&format!("a{}=", id));
+ buf_expr.write(&format!("expr{} = ", id));
buf_expr.write("&");
buf_expr.write(&expr_buf.buf);
buf_expr.writeln(",");
@@ -668,7 +668,7 @@ impl<'a> Generator<'a> {
id
});
- buf_format.write(&format!("{{a{}}}", id));
+ buf_format.write(&format!("{{expr{}}}", id));
}
}
}