projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Auto-generated bindings updates
[rust-lightning]
/
lightning-c-bindings
/
src
/
chain
/
transaction.rs
diff --git
a/lightning-c-bindings/src/chain/transaction.rs
b/lightning-c-bindings/src/chain/transaction.rs
index d0fd8c62112469ec8ede0856c6436a5d10c784e7..f9432230fe21237d11c9c9425b35d436da66ca6b 100644
(file)
--- a/
lightning-c-bindings/src/chain/transaction.rs
+++ b/
lightning-c-bindings/src/chain/transaction.rs
@@
-23,7
+23,7
@@
pub struct OutPoint {
impl Drop for OutPoint {
fn drop(&mut self) {
impl Drop for OutPoint {
fn drop(&mut self) {
- if self.is_owned && !
self.inner.is_null(
) {
+ if self.is_owned && !
<*mut nativeOutPoint>::is_null(self.inner
) {
let _ = unsafe { Box::from_raw(self.inner) };
}
}
let _ = unsafe { Box::from_raw(self.inner) };
}
}
@@
-78,7
+78,7
@@
pub extern "C" fn OutPoint_new(mut txid_arg: crate::c_types::ThirtyTwoBytes, mut
impl Clone for OutPoint {
fn clone(&self) -> Self {
Self {
impl Clone for OutPoint {
fn clone(&self) -> Self {
Self {
- inner: if
self.inner.is_null(
) { std::ptr::null_mut() } else {
+ inner: if
<*mut nativeOutPoint>::is_null(self.inner
) { std::ptr::null_mut() } else {
Box::into_raw(Box::new(unsafe { &*self.inner }.clone())) },
is_owned: true,
}
Box::into_raw(Box::new(unsafe { &*self.inner }.clone())) },
is_owned: true,
}