box sub error types

This commit is contained in:
Robin Appelman 2023-03-21 20:06:53 +01:00
commit a90cb67dc2
4 changed files with 18 additions and 5 deletions

View file

@ -24,6 +24,7 @@ impl<'a> RawEvent<'a> {
}
fn event_parser(input: &str) -> Result<RawEvent> {
// println!("{}", input);
if input.len() < 24 {
return Err(Error::Skip);
}