Update RefContext to three lifetimes.
This commit is contained in:
@@ -16,7 +16,7 @@ use crate::error::Res;
|
||||
|
||||
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
||||
pub fn plain_text<'r, 's>(
|
||||
context: RefContext<'r, 's>,
|
||||
context: RefContext<'_, 'r, 's>,
|
||||
input: OrgSource<'s>,
|
||||
) -> Res<OrgSource<'s>, PlainText<'s>> {
|
||||
let (remaining, source) = recognize(verify(
|
||||
@@ -40,7 +40,7 @@ pub fn plain_text<'r, 's>(
|
||||
|
||||
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
||||
fn plain_text_end<'r, 's>(
|
||||
context: RefContext<'r, 's>,
|
||||
context: RefContext<'_, 'r, 's>,
|
||||
input: OrgSource<'s>,
|
||||
) -> Res<OrgSource<'s>, OrgSource<'s>> {
|
||||
recognize(parser_with_context!(any_object_except_plain_text)(context))(input)
|
||||
@@ -50,7 +50,7 @@ impl<'x> RematchObject<'x> for PlainText<'x> {
|
||||
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
||||
fn rematch_object<'r, 's>(
|
||||
&'x self,
|
||||
_context: RefContext<'r, 's>,
|
||||
_context: RefContext<'_, 'r, 's>,
|
||||
input: OrgSource<'s>,
|
||||
) -> Res<OrgSource<'s>, Object<'s>> {
|
||||
map(tag(self.source), |s| {
|
||||
|
||||
Reference in New Issue
Block a user