* fix #311, codegen produces incorrect pattern for macro, broken usage
* Use rustfmt when available
Signed-off-by: Simon Sapin <simon@igalia.com>
* Check rustfmt exit code
When rustup is installed but rustfmt is not, `~/.cargo/bin/rustfmt` exists
and prints and error message. `Command::spawn` succeeds, but we need to check
the exist status.
Signed-off-by: Simon Sapin <simon@igalia.com>
* Skip rustfmt suprocess for miri
Signed-off-by: Simon Sapin <simon@igalia.com>
---------
Signed-off-by: Simon Sapin <simon@igalia.com>
Co-authored-by: Alexander Koz. <a@koz.email>