better syntax
This commit is contained in:
parent
0e23e49199
commit
9f512ddc0e
1 changed files with 2 additions and 2 deletions
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue