From da5e85fd9c2efc63a2445bb71698c3383e21302a Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 2 May 2024 10:09:40 -0500 Subject: [PATCH] style: Address warnings --- src/ascii/mod.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ascii/mod.rs b/src/ascii/mod.rs index 504fdd74..814f14f6 100644 --- a/src/ascii/mod.rs +++ b/src/ascii/mod.rs @@ -1589,13 +1589,13 @@ where /// assert_eq!(esc(Partial::new("12\\\"34;")), Ok((Partial::new(";"), "12\\\"34"))); /// ``` #[inline(always)] -pub fn take_escaped<'i, Input: 'i, Error, Normal, Escapable, NormalOutput, EscapableOutput>( +pub fn take_escaped<'i, Input, Error, Normal, Escapable, NormalOutput, EscapableOutput>( mut normal: Normal, control_char: char, mut escapable: Escapable, ) -> impl Parser::Slice, Error> where - Input: StreamIsPartial + Stream + Compare, + Input: StreamIsPartial + Stream + Compare + 'i, Normal: Parser, Escapable: Parser, Error: ParserError, @@ -1612,13 +1612,13 @@ where /// Deprecated, replaced with [`take_escaped`] #[deprecated(since = "0.6.4", note = "Replaced with `take_escaped`")] #[inline(always)] -pub fn escaped<'i, Input: 'i, Error, Normal, Escapable, NormalOutput, EscapableOutput>( +pub fn escaped<'i, Input, Error, Normal, Escapable, NormalOutput, EscapableOutput>( normal: Normal, control_char: char, escapable: Escapable, ) -> impl Parser::Slice, Error> where - Input: StreamIsPartial + Stream + Compare, + Input: StreamIsPartial + Stream + Compare + 'i, Normal: Parser, Escapable: Parser, Error: ParserError, @@ -1668,7 +1668,7 @@ where Err(ErrMode::Incomplete(Needed::Unknown)) } -fn complete_escaped_internal<'a, I: 'a, Error, F, G, O1, O2>( +fn complete_escaped_internal<'a, I, Error, F, G, O1, O2>( input: &mut I, normal: &mut F, control_char: char, @@ -1678,6 +1678,7 @@ where I: StreamIsPartial, I: Stream, I: Compare, + I: 'a, F: Parser, G: Parser, Error: ParserError,