diff --git a/src/ascii/mod.rs b/src/ascii/mod.rs index 85d55a31..87a3cf4f 100644 --- a/src/ascii/mod.rs +++ b/src/ascii/mod.rs @@ -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( mut normal: Normal, control_char: char, mut escapable: Escapable, ) -> impl Parser::Slice, Error> where - Input: StreamIsPartial + Stream + Compare + 'i, + Input: StreamIsPartial + Stream + Compare, Normal: Parser, Escapable: Parser, Error: ParserError, @@ -1640,13 +1640,13 @@ 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( normal: Normal, control_char: char, escapable: Escapable, ) -> impl Parser::Slice, Error> where - Input: StreamIsPartial + Stream + Compare + 'i, + Input: StreamIsPartial + Stream + Compare, Normal: Parser, Escapable: Parser, Error: ParserError, @@ -1654,7 +1654,7 @@ where take_escaped(normal, control_char, escapable) } -fn escaped_internal<'a, I, Error, F, G, O1, O2, const PARTIAL: bool>( +fn escaped_internal( input: &mut I, normal: &mut F, control_char: char, @@ -1664,7 +1664,6 @@ where I: StreamIsPartial, I: Stream, I: Compare, - I: 'a, F: Parser, G: Parser, Error: ParserError,