Remove unnecessary context from some util functions.
This commit is contained in:
@@ -41,7 +41,7 @@ pub fn drawer<'r, 's>(
|
||||
"Cannot nest objects of the same element".into(),
|
||||
))));
|
||||
}
|
||||
start_of_line(context, input)?;
|
||||
start_of_line(input)?;
|
||||
let (remaining, _leading_whitespace) = space0(input)?;
|
||||
let (remaining, (_open_colon, drawer_name, _close_colon, _new_line)) = tuple((
|
||||
tag(":"),
|
||||
@@ -102,7 +102,7 @@ fn drawer_end<'r, 's>(
|
||||
context: Context<'r, 's>,
|
||||
input: OrgSource<'s>,
|
||||
) -> Res<OrgSource<'s>, OrgSource<'s>> {
|
||||
start_of_line(context, input)?;
|
||||
start_of_line(input)?;
|
||||
recognize(tuple((
|
||||
space0,
|
||||
tag_no_case(":end:"),
|
||||
|
||||
Reference in New Issue
Block a user