The #[repr(C)] attribute on the callback example is not necessary, since the type is not used in C.

pull/274/head
Jason Heeris 3 years ago committed by Alexis Beingessner
parent ce7f52b0ad
commit b9ca313e68

@ -310,7 +310,6 @@ referenced Rust object.
Rust code: Rust code:
```rust,no_run ```rust,no_run
#[repr(C)]
struct RustObject { struct RustObject {
a: i32, a: i32,
// Other members... // Other members...

Loading…
Cancel
Save