summaryrefslogtreecommitdiff
path: root/src/func/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-01-10 13:03:43 +0100
committerLaurenz <laurmaedje@gmail.com>2020-01-10 13:03:43 +0100
commita75ddd2c9356da85b155f5c52fd064c15e6f81b3 (patch)
tree40d63a65d84945bd2cbf33449096e14e84babdf9 /src/func/mod.rs
parent5dbc7dc5aaaea794b140c5ea7839d681110d7b79 (diff)
Convert spans to line/column format 📑
Diffstat (limited to 'src/func/mod.rs')
-rw-r--r--src/func/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/func/mod.rs b/src/func/mod.rs
index aca612aa..69f28e00 100644
--- a/src/func/mod.rs
+++ b/src/func/mod.rs
@@ -32,7 +32,7 @@ pub trait ParseFunc {
/// Parse the header and body into this function given a context.
fn parse(
args: FuncArgs,
- body: Option<Spanned<&str>>,
+ body: Option<&str>,
ctx: ParseContext,
metadata: Self::Meta,
) -> ParseResult<Self> where Self: Sized;
@@ -125,7 +125,7 @@ pub struct Scope {
/// implements [`LayoutFunc`].
type Parser = dyn Fn(
FuncArgs,
- Option<Spanned<&str>>,
+ Option<&str>,
ParseContext
) -> ParseResult<Box<dyn LayoutFunc>>;