mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +01:00
minor parse optimizations
This commit is contained in:
parent
3f51270509
commit
97ad9d634b
3 changed files with 13 additions and 3 deletions
|
|
@ -30,11 +30,13 @@ fn event_parser(input: &str) -> Result<RawEvent> {
|
|||
|
||||
let (input, ty) = event_type_parser(&input[1..])?;
|
||||
|
||||
let params = &input[(!input.is_empty() as usize)..];
|
||||
|
||||
Ok(RawEvent {
|
||||
date,
|
||||
subject,
|
||||
ty,
|
||||
params: &input[1..],
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue