]> git.bitcoin.ninja Git - rust-lightning/commit
[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>
Fri, 15 Jan 2021 00:49:14 +0000 (19:49 -0500)
commit160784fed44e010fb67c59a85209e3e9b48c429c
tree646b65cc28edf5aa6b3d94e271a98e6e6c2af295
parent764d8a6a61a58e1c86e5eaf74706f522fc389020
[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