X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning-c-bindings%2Fsrc%2Fln%2Ffeatures.rs;h=b01b011a5aea81ff6181467f35c86e0c696f4911;hb=b386da1c1c52264769daef3b2228138fd3a9a5ba;hp=44d2d68dfd77ef9a4870b688cf90e42dd4838ced;hpb=96b2927a9a548509d77fba3130791ebb61dfded6;p=rust-lightning diff --git a/lightning-c-bindings/src/ln/features.rs b/lightning-c-bindings/src/ln/features.rs index 44d2d68d..b01b011a 100644 --- a/lightning-c-bindings/src/ln/features.rs +++ b/lightning-c-bindings/src/ln/features.rs @@ -28,7 +28,7 @@ type nativeInitFeatures = nativeInitFeaturesImport; #[must_use] #[repr(C)] pub struct InitFeatures { - /// Nearly everyhwere, inner must be non-null, however in places where + /// Nearly everywhere, inner must be non-null, however in places where /// the Rust equivalent takes an Option, it may be set to null to indicate None. pub inner: *mut nativeInitFeatures, pub is_owned: bool, @@ -51,7 +51,7 @@ extern "C" fn InitFeatures_free_void(this_ptr: *mut c_void) { #[allow(unused)] /// When moving out of the pointer, we have to ensure we aren't a reference, this makes that easy impl InitFeatures { - pub(crate) fn take_ptr(mut self) -> *mut nativeInitFeatures { + pub(crate) fn take_inner(mut self) -> *mut nativeInitFeatures { assert!(self.is_owned); let ret = self.inner; self.inner = std::ptr::null_mut(); @@ -66,7 +66,7 @@ type nativeNodeFeatures = nativeNodeFeaturesImport; #[must_use] #[repr(C)] pub struct NodeFeatures { - /// Nearly everyhwere, inner must be non-null, however in places where + /// Nearly everywhere, inner must be non-null, however in places where /// the Rust equivalent takes an Option, it may be set to null to indicate None. pub inner: *mut nativeNodeFeatures, pub is_owned: bool, @@ -89,7 +89,7 @@ extern "C" fn NodeFeatures_free_void(this_ptr: *mut c_void) { #[allow(unused)] /// When moving out of the pointer, we have to ensure we aren't a reference, this makes that easy impl NodeFeatures { - pub(crate) fn take_ptr(mut self) -> *mut nativeNodeFeatures { + pub(crate) fn take_inner(mut self) -> *mut nativeNodeFeatures { assert!(self.is_owned); let ret = self.inner; self.inner = std::ptr::null_mut(); @@ -104,7 +104,7 @@ type nativeChannelFeatures = nativeChannelFeaturesImport; #[must_use] #[repr(C)] pub struct ChannelFeatures { - /// Nearly everyhwere, inner must be non-null, however in places where + /// Nearly everywhere, inner must be non-null, however in places where /// the Rust equivalent takes an Option, it may be set to null to indicate None. pub inner: *mut nativeChannelFeatures, pub is_owned: bool, @@ -127,7 +127,7 @@ extern "C" fn ChannelFeatures_free_void(this_ptr: *mut c_void) { #[allow(unused)] /// When moving out of the pointer, we have to ensure we aren't a reference, this makes that easy impl ChannelFeatures { - pub(crate) fn take_ptr(mut self) -> *mut nativeChannelFeatures { + pub(crate) fn take_inner(mut self) -> *mut nativeChannelFeatures { assert!(self.is_owned); let ret = self.inner; self.inner = std::ptr::null_mut();