From 889abdf277e4e846d4becac94d79c06078cf8e39 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 29 Apr 2024 19:57:05 +0200 Subject: rebel-parse: recipe: actually store fetch block in AST --- crates/rebel-parse/src/grammar/recipe.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/rebel-parse') diff --git a/crates/rebel-parse/src/grammar/recipe.rs b/crates/rebel-parse/src/grammar/recipe.rs index 73ddb2e..7b5d5d6 100644 --- a/crates/rebel-parse/src/grammar/recipe.rs +++ b/crates/rebel-parse/src/grammar/recipe.rs @@ -20,7 +20,7 @@ peg::parser! { pub rule recipe_stmt() -> ast::RecipeStmt<'a> = [Token::Keyword(Keyword::Fetch)] name:ident() p('{') body:body() p('}') { - ast::RecipeStmt::Fetch { name, body: ast::Body(Vec::new()) } + ast::RecipeStmt::Fetch { name, body } } / [Token::Keyword(Keyword::Task)] name:ident() p('(') params:func_params() p(')') p('{') body:body() p('}') { -- cgit v1.2.3