Update auto-generated bindings to 0.0.113
[ldk-c-bindings] / lightning-c-bindings / src / lightning / ln / peer_handler.rs
index 5a877e2d82269537069c022d34902e2c18300ba2..5417667279a0c68f441c2a4fd59f57b635bd79dd 100644 (file)
@@ -131,7 +131,7 @@ pub extern "C" fn IgnoringMessageHandler_free(this_obj: IgnoringMessageHandler)
 #[allow(unused)]
 /// Used only if an object of this type is returned as a trait impl by a method
 pub(crate) extern "C" fn IgnoringMessageHandler_free_void(this_ptr: *mut c_void) {
-       unsafe { let _ = Box::from_raw(this_ptr as *mut nativeIgnoringMessageHandler); }
+       let _ = unsafe { Box::from_raw(this_ptr as *mut nativeIgnoringMessageHandler) };
 }
 #[allow(unused)]
 impl IgnoringMessageHandler {
@@ -516,7 +516,7 @@ pub extern "C" fn ErroringMessageHandler_free(this_obj: ErroringMessageHandler)
 #[allow(unused)]
 /// Used only if an object of this type is returned as a trait impl by a method
 pub(crate) extern "C" fn ErroringMessageHandler_free_void(this_ptr: *mut c_void) {
-       unsafe { let _ = Box::from_raw(this_ptr as *mut nativeErroringMessageHandler); }
+       let _ = unsafe { Box::from_raw(this_ptr as *mut nativeErroringMessageHandler) };
 }
 #[allow(unused)]
 impl ErroringMessageHandler {
@@ -724,7 +724,7 @@ pub extern "C" fn MessageHandler_free(this_obj: MessageHandler) { }
 #[allow(unused)]
 /// Used only if an object of this type is returned as a trait impl by a method
 pub(crate) extern "C" fn MessageHandler_free_void(this_ptr: *mut c_void) {
-       unsafe { let _ = Box::from_raw(this_ptr as *mut nativeMessageHandler); }
+       let _ = unsafe { Box::from_raw(this_ptr as *mut nativeMessageHandler) };
 }
 #[allow(unused)]
 impl MessageHandler {
@@ -952,7 +952,7 @@ pub extern "C" fn PeerHandleError_free(this_obj: PeerHandleError) { }
 #[allow(unused)]
 /// Used only if an object of this type is returned as a trait impl by a method
 pub(crate) extern "C" fn PeerHandleError_free_void(this_ptr: *mut c_void) {
-       unsafe { let _ = Box::from_raw(this_ptr as *mut nativePeerHandleError); }
+       let _ = unsafe { Box::from_raw(this_ptr as *mut nativePeerHandleError) };
 }
 #[allow(unused)]
 impl PeerHandleError {
@@ -1071,7 +1071,7 @@ pub extern "C" fn PeerManager_free(this_obj: PeerManager) { }
 #[allow(unused)]
 /// Used only if an object of this type is returned as a trait impl by a method
 pub(crate) extern "C" fn PeerManager_free_void(this_ptr: *mut c_void) {
-       unsafe { let _ = Box::from_raw(this_ptr as *mut nativePeerManager); }
+       let _ = unsafe { Box::from_raw(this_ptr as *mut nativePeerManager) };
 }
 #[allow(unused)]
 impl PeerManager {