diff options
author | René Kijewski <rene.kijewski@fu-berlin.de> | 2023-08-01 03:09:35 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-08-01 13:04:41 +0200 |
commit | 222c42917aa19162562b8a9c35350e3e992f9823 (patch) | |
tree | 055f247d144e72c0bdd167ce8313f87aadca6b21 /askama_derive/src/generator.rs | |
parent | ffe267be7a725c776ebc92d6551e8a070aadf254 (diff) | |
download | askama-222c42917aa19162562b8a9c35350e3e992f9823.tar.gz askama-222c42917aa19162562b8a9c35350e3e992f9823.tar.bz2 askama-222c42917aa19162562b8a9c35350e3e992f9823.zip |
parser: let `Macro` know its name
Diffstat (limited to '')
-rw-r--r-- | askama_derive/src/generator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 5308c02..1c6e722 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -659,7 +659,7 @@ impl<'a> Generator<'a> { Node::Call(ws, scope, name, ref args) => { size_hint += self.write_call(ctx, buf, ws, scope, name, args)?; } - Node::Macro(_, ref m) => { + Node::Macro(ref m) => { if level != AstLevel::Top { return Err("macro blocks only allowed at the top level".into()); } |