mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-06-03 18:24:09 +02:00
remove some more nom
This commit is contained in:
parent
d326e1bb6a
commit
311345cf4e
15 changed files with 103 additions and 91 deletions
|
|
@ -12,7 +12,7 @@ handler!(Handler {
|
|||
});
|
||||
|
||||
fn main() -> Result<(), MainError> {
|
||||
let path = args().skip(1).next().expect("No path provided");
|
||||
let path = args().nth(1).expect("No path provided");
|
||||
let content = fs::read_to_string(path)?;
|
||||
|
||||
let (
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ impl GlobalData for HighestDamageHandler {
|
|||
}
|
||||
|
||||
fn main() -> Result<(), MainError> {
|
||||
let path = args().skip(1).next().expect("No path provided");
|
||||
let path = args().nth(1).expect("No path provided");
|
||||
let content = fs::read_to_string(path)?;
|
||||
|
||||
let HighestDamage { user, damage } = parse_with_handler::<HighestDamageHandler>(&content)?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue