This commit is contained in:
nora 2022-02-20 14:10:19 +01:00
parent 2e0a31f4af
commit ed4a107c44
13 changed files with 1448 additions and 1860 deletions

View file

@ -1,3 +1,5 @@
#![allow(clippy::needless_late_init)] // because of a bad derive macro
mod parser;
mod random;
mod write;

View file

@ -176,7 +176,7 @@ fn function<F>(name: &str, ret_ty: &str, body: F)
where
F: FnOnce(),
{
println!("fn {name}(input: &[u8]) -> IResult<{ret_ty}> {{");
println!("fn {name}(input: &[u8]) -> IResult<'_, {ret_ty}> {{");
body();
println!("}}");
}