handlers are now infalible

This commit is contained in:
Robin Appelman 2021-08-08 00:25:34 +02:00
commit 5be2b0a473
7 changed files with 101 additions and 204 deletions

View file

@ -74,6 +74,5 @@ pub fn medic_death_event_parser(input: &str) -> IResult<&str, MedicDeathEvent> {
charge = Some(quoted(u_int)(value)?.1);
}
}
let (input, time) = opt(param_parse_with("time", quoted(float)))(input)?;
Ok((input, MedicDeathEvent { charge }))
}