Closed detly closed 3 years ago
The #[repr(C)] attribute on the callback example is not necessary, since the type is not used from the C code.
better safe than sorry, but yeah maybe it's nice to show it's not needed.
I can only tell you my opinion, but I found it confusing because it didn't relate to the context. But I see it's merged now, cheers!
The #[repr(C)] attribute on the callback example is not necessary, since the type is not used from the C code.