[bindings] Be explicit when calling pointer.is_null()
authorMatt Corallo <git@bluematt.me>
Mon, 1 Mar 2021 22:07:29 +0000 (17:07 -0500)
committerMatt Corallo <git@bluematt.me>
Sun, 7 Mar 2021 18:06:07 +0000 (13:06 -0500)
commit6b4c8e4690116a3bf41054ccac908bfba0a7af01
tree9b3c3506783b5d4b9b5e46d4d5c3d1c4833313a0
parentbfa95cd289574e37d95519114f9dd2e3d3983053
[bindings] Be explicit when calling pointer.is_null()

When the (somewhat anti-pattern)
`impl Deref for X { type Target = X; .. }` is used, this avoids an
infinite dereference exception trying to figure out what type to
resolve `is_null` against.
c-bindings-gen/src/main.rs