X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning-c-bindings%2Fsrc%2Flightning%2Futil%2Fser.rs;fp=lightning-c-bindings%2Fsrc%2Flightning%2Futil%2Fser.rs;h=241033d5191f7b92679e9b0584df229afe6aed5a;hb=2f70a371708dbfde3fa6abfcc0315736d2795a01;hp=be7c62636cf114978f0cdfd87869fade48a182e6;hpb=c7b284ef5deb5af4b99e64b7c7e1b7d01d7ae33b;p=ldk-c-bindings diff --git a/lightning-c-bindings/src/lightning/util/ser.rs b/lightning-c-bindings/src/lightning/util/ser.rs index be7c626..241033d 100644 --- a/lightning-c-bindings/src/lightning/util/ser.rs +++ b/lightning-c-bindings/src/lightning/util/ser.rs @@ -60,7 +60,7 @@ pub extern "C" fn BigSize_free(this_obj: BigSize) { } #[allow(unused)] /// Used only if an object of this type is returned as a trait impl by a method pub(crate) extern "C" fn BigSize_free_void(this_ptr: *mut c_void) { - unsafe { let _ = Box::from_raw(this_ptr as *mut nativeBigSize); } + let _ = unsafe { Box::from_raw(this_ptr as *mut nativeBigSize) }; } #[allow(unused)] impl BigSize { @@ -132,7 +132,7 @@ pub extern "C" fn Hostname_free(this_obj: Hostname) { } #[allow(unused)] /// Used only if an object of this type is returned as a trait impl by a method pub(crate) extern "C" fn Hostname_free_void(this_ptr: *mut c_void) { - unsafe { let _ = Box::from_raw(this_ptr as *mut nativeHostname); } + let _ = unsafe { Box::from_raw(this_ptr as *mut nativeHostname) }; } #[allow(unused)] impl Hostname {