From c8399c75ed0b90f0976ffeaa220150b8c1c22421 Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Tue, 1 Aug 2023 12:49:17 +0200 Subject: parser: `node::Loop` is much bigger than the other variants --- askama_parser/src/node.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'askama_parser/src/node.rs') diff --git a/askama_parser/src/node.rs b/askama_parser/src/node.rs index 2d82868..02b90b5 100644 --- a/askama_parser/src/node.rs +++ b/askama_parser/src/node.rs @@ -23,7 +23,7 @@ pub enum Node<'a> { Let(Let<'a>), If(If<'a>), Match(Match<'a>), - Loop(Loop<'a>), + Loop(Box>), Extends(Extends<'a>), BlockDef(BlockDef<'a>), Include(Include<'a>), @@ -51,7 +51,7 @@ impl<'a> Node<'a> { map(Call::parse, Self::Call), map(Let::parse, Self::Let), map(|i| If::parse(i, s), Self::If), - map(|i| Loop::parse(i, s), Self::Loop), + map(|i| Loop::parse(i, s), |l| Self::Loop(Box::new(l))), map(|i| Match::parse(i, s), Self::Match), map(Extends::parse, Self::Extends), map(Include::parse, Self::Include), -- cgit