better syntax

This commit is contained in:
Quentin 2023-06-16 11:07:04 +02:00
parent 0e23e49199
commit 9f512ddc0e
Signed by: quentin
GPG key ID: E9602264D639FF68

View file

@ -303,8 +303,8 @@ fn field_name(input: &str) -> IResult<&str, &str> {
fn rescue(input: &str) -> IResult<&str, HeaderField> {
map(recognize(pair(
many0(pair(is_not("\r\n"), fws)),
pair(is_not("\r\n"), perm_crlf,
))), |x| HeaderField::Rescue(x))(input)
pair(is_not("\r\n"), perm_crlf),
)), |x| HeaderField::Rescue(x))(input)
}
#[cfg(test)]