Give global options their own lifetime.
This commit is contained in:
@@ -21,8 +21,8 @@ use crate::parser::util::get_consumed;
|
||||
use crate::types::Target;
|
||||
|
||||
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
||||
pub fn target<'r, 's>(
|
||||
context: RefContext<'_, 'r, 's>,
|
||||
pub fn target<'b, 'g, 'r, 's>(
|
||||
context: RefContext<'b, 'g, 'r, 's>,
|
||||
input: OrgSource<'s>,
|
||||
) -> Res<OrgSource<'s>, Target<'s>> {
|
||||
let (remaining, _) = tag("<<")(input)?;
|
||||
@@ -62,8 +62,8 @@ pub fn target<'r, 's>(
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
||||
fn target_end<'r, 's>(
|
||||
_context: RefContext<'_, 'r, 's>,
|
||||
fn target_end<'b, 'g, 'r, 's>(
|
||||
_context: RefContext<'b, 'g, 'r, 's>,
|
||||
input: OrgSource<'s>,
|
||||
) -> Res<OrgSource<'s>, OrgSource<'s>> {
|
||||
recognize(one_of("<>\n"))(input)
|
||||
|
||||
Reference in New Issue
Block a user