JohnTitor / ctest2

Automatic testing of FFI bindings for Rust
https://crates.io/crates/ctest2
Apache License 2.0
22 stars 20 forks source link

Remove the use of `mem::zeroed()` from generated code #35

Closed JohnTitor closed 2 years ago

JohnTitor commented 2 years ago

Fixes #31

JohnTitor commented 2 years ago

@joshtriplett Do you have any chance to use this patch before merging?

joshtriplett commented 2 years ago

@JohnTitor That partially fixes the issue, but the other uses of zeroed in the generated code also need updating.

JohnTitor commented 2 years ago

Good call, I totally overlooked them. Now there's no use of mem::zeroed(), could you re-check?

joshtriplett commented 2 years ago

@JohnTitor That fixed the problem, thank you! I can run the libz-sys systest suite with ctest2 from this PR branch.