Don't know how to use nom's dbg_dmp

146 views Asked by At

I have a parser setup where I've injected dbg_dmp to the best of my ability:

permutation((
        check_eye_color,
        check_passport_id,
        check_birth_year,
        check_issue_year,
        check_expiry_year,
        check_hair_color,
        check_height,
        dbg_dmp(check_cid, "cid"),
    ))(input)

This gives me:

error[E0277]: expected a `FnMut<(&str,)>` closure, found `impl Fn<(&[u8],)>`

No clue why or how to resolve this.

0

There are 0 answers