summaryrefslogtreecommitdiff
path: root/src/model/recipe.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/recipe.rs')
-rw-r--r--src/model/recipe.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/recipe.rs b/src/model/recipe.rs
index 3404a384..e4417adf 100644
--- a/src/model/recipe.rs
+++ b/src/model/recipe.rs
@@ -82,12 +82,12 @@ impl Recipe {
F: FnOnce() -> Value,
{
let args = if self.func.argc() == Some(0) {
- Args::new(self.span)
+ Args::new(self.span, [])
} else {
- Args::from_values(self.span, [arg()])
+ Args::new(self.span, [arg()])
};
- Ok(self.func.call(ctx, args)?.display())
+ Ok(self.func.call_detached(ctx, args)?.display())
}
/// What kind of structure the property interrupts.