fixup! adjust parse_until_done to return an Option so it is more versatile
This commit is contained in:
parent
e082d2f4f4
commit
9d9a3cea0d
1 changed files with 3 additions and 1 deletions
|
|
@ -164,7 +164,9 @@ pub(crate) fn parse_until_done<'input, T, F>(
|
|||
where
|
||||
F: FnMut(Response<'input>) -> Result<MapOrNot<'input, T>>,
|
||||
{
|
||||
parse_until_done_internal(input, false, unsolicited, map).map(|e| e.unwrap())
|
||||
parse_until_done_internal(input, false, unsolicited, map).map(|e| {
|
||||
e.expect("optional = false, so Err(Invalid) would be returned instead of Ok(None)")
|
||||
})
|
||||
}
|
||||
|
||||
pub fn parse_expunge(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue