From 5a8f2fb73ddafba9fdbe952385ae2676126183ae Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 2 Aug 2020 22:21:58 +0200 Subject: =?UTF-8?q?Replace=20body!=20macro=20with=20functions=20?= =?UTF-8?q?=F0=9F=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/syntax/test.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/syntax/test.rs') diff --git a/src/syntax/test.rs b/src/syntax/test.rs index b701e577..504bc334 100644 --- a/src/syntax/test.rs +++ b/src/syntax/test.rs @@ -1,5 +1,6 @@ use std::fmt::Debug; +use crate::func::parse_maybe_body; use super::decoration::Decoration; use super::expr::{Expr, Ident, Tuple, NamedTuple, Object, Pair}; use super::parsing::{FuncHeader, FuncArgs, FuncArg}; @@ -71,7 +72,7 @@ function! { header.args.key.0.clear(); DebugFn { header: cloned, - body: body!(opt: body, state, f), + body: parse_maybe_body(body, state, f), } } -- cgit v1.2.3