diff options
Diffstat (limited to 'src/func/macros.rs')
| -rw-r--r-- | src/func/macros.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/func/macros.rs b/src/func/macros.rs index bbe04b98..3a32ec09 100644 --- a/src/func/macros.rs +++ b/src/func/macros.rs @@ -80,7 +80,7 @@ macro_rules! function { fn parse( args: FuncArgs, - $body: Option<Spanned<&str>>, + $body: Option<&str>, $ctx: ParseContext, $metadata: Self::Meta, ) -> ParseResult<Self> where Self: Sized { @@ -144,7 +144,7 @@ macro_rules! parse { (optional: $body:expr, $ctx:expr) => ( if let Some(body) = $body { - Some($crate::syntax::parse(body.v, $ctx)?) + Some($crate::syntax::parse(body, $ctx)?) } else { None } @@ -152,7 +152,7 @@ macro_rules! parse { (expected: $body:expr, $ctx:expr) => ( if let Some(body) = $body { - $crate::syntax::parse(body.v, $ctx)? + $crate::syntax::parse(body, $ctx)? } else { error!("expected body"); } |
