mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +01:00
move event parsing to derive macros
This commit is contained in:
parent
b7d189b2a0
commit
14c1fbe0d9
13 changed files with 591 additions and 460 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue