Closed skade closed 3 years ago
We still use:
enum opaque {}
This has subtle issues that usually don't appear in practice (only if you dereference them).
Still, the current recommendation for opaque types is:
struct opaque{ priv: [u8;0]}
and should be used for cleanliness.
Fixed by: https://github.com/skade/leveldb-sys/pull/23
We still use:
enum opaque {}
This has subtle issues that usually don't appear in practice (only if you dereference them).
Still, the current recommendation for opaque types is:
struct opaque{ priv: [u8;0]}
and should be used for cleanliness.