Skip to content

Commit

Permalink
Merge pull request #674 from epage/fix
Browse files Browse the repository at this point in the history
fix(ascii)!: Remove unused lifetime
  • Loading branch information
epage authored Jan 6, 2025
2 parents 2b840ca + 5df5753 commit d5a184f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/ascii/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1607,13 +1607,13 @@ where
/// assert_eq!(esc(Partial::new("12\\\"34;")), Ok((Partial::new(";"), "12\\\"34")));
/// ```
#[inline(always)]
pub fn take_escaped<'i, Input, Error, Normal, Escapable, NormalOutput, EscapableOutput>(
pub fn take_escaped<Input, Error, Normal, Escapable, NormalOutput, EscapableOutput>(
mut normal: Normal,
control_char: char,
mut escapable: Escapable,
) -> impl Parser<Input, <Input as Stream>::Slice, Error>
where
Input: StreamIsPartial + Stream + Compare<char> + 'i,
Input: StreamIsPartial + Stream + Compare<char>,
Normal: Parser<Input, NormalOutput, Error>,
Escapable: Parser<Input, EscapableOutput, Error>,
Error: ParserError<Input>,
Expand All @@ -1640,21 +1640,21 @@ where
/// Deprecated, replaced with [`take_escaped`]
#[deprecated(since = "0.6.4", note = "Replaced with `take_escaped`")]
#[inline(always)]
pub fn escaped<'i, Input, Error, Normal, Escapable, NormalOutput, EscapableOutput>(
pub fn escaped<Input, Error, Normal, Escapable, NormalOutput, EscapableOutput>(
normal: Normal,
control_char: char,
escapable: Escapable,
) -> impl Parser<Input, <Input as Stream>::Slice, Error>
where
Input: StreamIsPartial + Stream + Compare<char> + 'i,
Input: StreamIsPartial + Stream + Compare<char>,
Normal: Parser<Input, NormalOutput, Error>,
Escapable: Parser<Input, EscapableOutput, Error>,
Error: ParserError<Input>,
{
take_escaped(normal, control_char, escapable)
}

fn escaped_internal<'a, I, Error, F, G, O1, O2, const PARTIAL: bool>(
fn escaped_internal<I, Error, F, G, O1, O2, const PARTIAL: bool>(
input: &mut I,
normal: &mut F,
control_char: char,
Expand All @@ -1664,7 +1664,6 @@ where
I: StreamIsPartial,
I: Stream,
I: Compare<char>,
I: 'a,
F: Parser<I, O1, Error>,
G: Parser<I, O2, Error>,
Error: ParserError<I>,
Expand Down

0 comments on commit d5a184f

Please sign in to comment.