]> 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>
Tue, 2 Feb 2021 22:04:31 +0000 (17:04 -0500)
commit554af1efb318e38f2428506f696cc9e9bdaaea02
tree3f1cea333518194d99b7f225389cd58674ebe348
parent734c0a6236cdb24abe7b3fbd1d3dd999ee2a4831
[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