This is a one-off, because I don't want to make CI require it (with the knock-on that people have to run random scripts wrapping cargo fmt in their workflow).
But even as a one-off I think it's a strict improvement?
The script is:
sed -i -e 's/ffi_panic_boundary! {/if true {/g' src/*.rs
cargo fmt
sed -i -e 's/if true {/ffi_panic_boundary! {/g' src/*.rs
This is a one-off, because I don't want to make CI require it (with the knock-on that people have to run random scripts wrapping
cargo fmt
in their workflow).But even as a one-off I think it's a strict improvement?
The script is: