[bindings] Be explicit with take_ptr calls
authorMatt Corallo <git@bluematt.me>
Wed, 25 Nov 2020 18:25:18 +0000 (13:25 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 4 Jan 2021 21:14:26 +0000 (16:14 -0500)
commit93d7a2f4c0193a965fcc9349f45ce4c800593bb9
treeeb2f63ca62aaa4b5239fa4ee52b0d83585a952b6
parent7c7de7153fbfb950642ba243caaf0fc5b2395491
[bindings] Be explicit with take_ptr calls

If you try to call take_ptr on a pointer to an object which
implements Deref, rustc hits the deref recursion limit.

To avoid this, we can explicitly tell rustc that we want to treat
the pointer as a pointer and call take_ptr on it directly.
c-bindings-gen/src/types.rs