summaryrefslogtreecommitdiff
path: root/src/syntax/test.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-08-02 22:21:58 +0200
committerLaurenz <laurmaedje@gmail.com>2020-08-02 22:21:58 +0200
commit5a8f2fb73ddafba9fdbe952385ae2676126183ae (patch)
treef65dcc5c8fc3809171e0cc1a985d466159ccb254 /src/syntax/test.rs
parent266d457292e7461d448f9141030028ea68b573d1 (diff)
Replace body! macro with functions 🧰
Diffstat (limited to 'src/syntax/test.rs')
-rw-r--r--src/syntax/test.rs3
1 files changed, 2 insertions, 1 deletions
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),
}
}