move event parsing to derive macros

This commit is contained in:
Robin Appelman 2023-03-05 22:31:48 +01:00
commit 14c1fbe0d9
13 changed files with 591 additions and 460 deletions

View file

@ -19,6 +19,7 @@ pub struct RawEvent<'a> {
impl<'a> RawEvent<'a> {
pub fn parse(line: &'a str) -> Result<Self> {
debug_assert!(!line.ends_with("\n"));
event_parser(line)
}
}