Update RefContext to three lifetimes.
This commit is contained in:
@@ -20,7 +20,7 @@ use crate::parser::LatexEnvironment;
|
||||
|
||||
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
||||
pub fn latex_environment<'r, 's>(
|
||||
context: RefContext<'r, 's>,
|
||||
context: RefContext<'_, 'r, 's>,
|
||||
input: OrgSource<'s>,
|
||||
) -> Res<OrgSource<'s>, LatexEnvironment<'s>> {
|
||||
start_of_line(input)?;
|
||||
@@ -67,7 +67,7 @@ pub fn contents<
|
||||
F: Fn(Context<'r, 's>, OrgSource<'s>) -> Res<OrgSource<'s>, OrgSource<'s>>,
|
||||
>(
|
||||
end_matcher: F,
|
||||
context: RefContext<'r, 's>,
|
||||
context: RefContext<'_, 'r, 's>,
|
||||
input: OrgSource<'s>,
|
||||
) -> Res<OrgSource<'s>, OrgSource<'s>> {
|
||||
let (remaining, source) = recognize(many_till(
|
||||
@@ -92,7 +92,7 @@ fn latex_environment_end(
|
||||
|
||||
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
||||
fn _latex_environment_end<'r, 's, 'x>(
|
||||
_context: RefContext<'r, 's>,
|
||||
_context: RefContext<'_, 'r, 's>,
|
||||
input: OrgSource<'s>,
|
||||
current_name_lower: &'x str,
|
||||
) -> Res<OrgSource<'s>, OrgSource<'s>> {
|
||||
|
||||
Reference in New Issue
Block a user