X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning-c-bindings%2Fsrc%2Flightning%2Futil%2Flogger.rs;h=1e4051d05dc3a28eda4290cf71517c0a251508cf;hb=2f70a371708dbfde3fa6abfcc0315736d2795a01;hp=00cd10e34def3e699cdb6626a9417ce2327d5b40;hpb=45ad3320df3768514d968c70fc4b6a9d50028050;p=ldk-c-bindings diff --git a/lightning-c-bindings/src/lightning/util/logger.rs b/lightning-c-bindings/src/lightning/util/logger.rs index 00cd10e..1e4051d 100644 --- a/lightning-c-bindings/src/lightning/util/logger.rs +++ b/lightning-c-bindings/src/lightning/util/logger.rs @@ -174,7 +174,7 @@ pub extern "C" fn Record_free(this_obj: Record) { } #[allow(unused)] /// Used only if an object of this type is returned as a trait impl by a method pub(crate) extern "C" fn Record_free_void(this_ptr: *mut c_void) { - unsafe { let _ = Box::from_raw(this_ptr as *mut nativeRecord); } + let _ = unsafe { Box::from_raw(this_ptr as *mut nativeRecord) }; } #[allow(unused)] impl Record {