This commit is contained in:
Robin Appelman 2025-06-02 22:51:52 +02:00
commit 9d6f946c11
2 changed files with 4 additions and 3 deletions

View file

@ -10,4 +10,5 @@ tf-log-parser path/to/log.log
## Custom statistics
By implementing the `EventHandler` trait you can run custom analysis, see the [examples](./examples) for details.
By implementing the `EventHandler` trait you can run custom analysis, see the
[examples](./examples) for details.

View file

@ -144,7 +144,7 @@ pub fn subject_parser(input: &str) -> Result<(&str, RawSubject)> {
let full = input;
if let Some(input) = input.strip_prefix('"') {
let Ok((player, input)) = split_subject_end(input, 1) else {
return Ok((full, RawSubject::Console))
return Ok((full, RawSubject::Console));
};
let input = skip(input, 1)?;
if player.ends_with("le>") {
@ -169,7 +169,7 @@ pub fn subject_parser(input: &str) -> Result<(&str, RawSubject)> {
}
} else {
let Ok((system, input)) = split_once(input, b' ', 1) else {
return Ok(("", RawSubject::System(input)))
return Ok(("", RawSubject::System(input)));
};
Ok((input, RawSubject::System(system)))
}