Skip to content

Commit 6b3453c

Browse files
committed
fix elision warnings in fuzz crate
1 parent 2db2754 commit 6b3453c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fuzz/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn token(input: &str) -> nom::IResult<&str, &str> {
5757
/// VCHAR = %x21-7E
5858
/// ; visible (printing) characters
5959
/// ```
60-
fn quoted_string(input: &str) -> nom::IResult<&str, ParamValue> {
60+
fn quoted_string(input: &str) -> nom::IResult<&str, ParamValue<'_>> {
6161
trace!("quoted_string attempt on {:?}", input);
6262
let is_qdtext = |c| match c {
6363
'\t' | ' ' | '\x21' | '\x23'..='\x5B' | '\x5D'..='\x7E' => true,
@@ -90,7 +90,7 @@ fn quoted_string(input: &str) -> nom::IResult<&str, ParamValue> {
9090
/// ```text
9191
/// auth-param = token BWS "=" BWS ( token / quoted-string )
9292
/// ```
93-
fn auth_param(input: &str) -> nom::IResult<&str, (&str, ParamValue)> {
93+
fn auth_param(input: &str) -> nom::IResult<&str, (&str, ParamValue<'_>)> {
9494
trace!("auth_param attempt on {:?}", input);
9595
separated_pair(
9696
token,
@@ -170,7 +170,7 @@ where
170170
///
171171
/// Although in practice this is ambiguous when placed into a `1#challenge`,
172172
/// which we resolve by using `list0_relaxed_inner` rather than `list0_relaxed`.
173-
fn challenge(input: &str) -> nom::IResult<&str, ChallengeRef> {
173+
fn challenge(input: &str) -> nom::IResult<&str, ChallengeRef<'_>> {
174174
trace!("challenge attempt on {:?}", input);
175175
map(
176176
tuple((
@@ -195,7 +195,7 @@ fn challenge(input: &str) -> nom::IResult<&str, ChallengeRef> {
195195
/// WWW-Authenticate = *( "," OWS ) challenge *( OWS "," [ OWS challenge
196196
/// ] )
197197
/// ```
198-
pub fn challenges(input: &str) -> nom::IResult<&str, Vec<ChallengeRef>> {
198+
pub fn challenges(input: &str) -> nom::IResult<&str, Vec<ChallengeRef<'_>>> {
199199
all_consuming(list1_relaxed(challenge))(input)
200200
}
201201

0 commit comments

Comments
 (0)