remove some more nom

This commit is contained in:
Robin Appelman 2021-12-21 15:42:39 +01:00
commit 311345cf4e
15 changed files with 103 additions and 91 deletions

View file

@ -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 (

View file

@ -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)?