Standardize order of lifetimes for r and s.

This commit is contained in:
Tom Alexander
2022-12-18 03:30:28 -05:00
parent 2def475337
commit 50a67c65ef
5 changed files with 13 additions and 13 deletions

View File

@@ -18,7 +18,7 @@ use nom::combinator::recognize;
use nom::multi::many1;
use nom::sequence::tuple;
pub fn paragraph<'s, 'r>(context: Context<'r, 's>, i: &'s str) -> Res<&'s str, Paragraph<'s>> {
pub fn paragraph<'r, 's>(context: Context<'r, 's>, i: &'s str) -> Res<&'s str, Paragraph<'s>> {
// Add a not(eof) check because many_till cannot match a zero-length string
not(eof)(i)?;
let paragraph_context = context
@@ -44,7 +44,7 @@ pub fn paragraph<'s, 'r>(context: Context<'r, 's>, i: &'s str) -> Res<&'s str, P
))
}
fn context_paragraph_end<'s, 'r>(
fn context_paragraph_end<'r, 's>(
context: Context<'r, 's>,
input: &'s str,
) -> Res<&'s str, &'s str> {