summaryrefslogtreecommitdiffstats
path: root/crates
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2024-04-29 19:57:05 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2024-04-29 19:57:05 +0200
commit889abdf277e4e846d4becac94d79c06078cf8e39 (patch)
treec50c65beabde4dab843011994f952c5a287eeeb3 /crates
parent41982de3beb59b26c57f2627a7d74f223831e75f (diff)
downloadrebel-889abdf277e4e846d4becac94d79c06078cf8e39.tar
rebel-889abdf277e4e846d4becac94d79c06078cf8e39.zip
rebel-parse: recipe: actually store fetch block in AST
Diffstat (limited to 'crates')
-rw-r--r--crates/rebel-parse/src/grammar/recipe.rs2
1 files changed, 1 insertions, 1 deletions
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('}') {