Skip to content

Commit

Permalink
Merge pull request #518 from epage/style
Browse files Browse the repository at this point in the history
style: Address warnings
  • Loading branch information
epage authored May 2, 2024
2 parents 4617b91 + da5e85f commit 7b5fe80
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/ascii/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Input, <Input as Stream>::Slice, Error>
where
Input: StreamIsPartial + Stream + Compare<char>,
Input: StreamIsPartial + Stream + Compare<char> + 'i,
Normal: Parser<Input, NormalOutput, Error>,
Escapable: Parser<Input, EscapableOutput, Error>,
Error: ParserError<Input>,
Expand All @@ -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<Input, <Input as Stream>::Slice, Error>
where
Input: StreamIsPartial + Stream + Compare<char>,
Input: StreamIsPartial + Stream + Compare<char> + 'i,
Normal: Parser<Input, NormalOutput, Error>,
Escapable: Parser<Input, EscapableOutput, Error>,
Error: ParserError<Input>,
Expand Down Expand Up @@ -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,
Expand All @@ -1678,6 +1678,7 @@ 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 7b5fe80

Please sign in to comment.