- bindings updates
[rust-lightning] / lightning-c-bindings / src / util / events.rs
index d6fa40ffbf72f98920036fec99fbfe9dcc77d384..42aaecbc308e901679b89e65134e9004d5edffba 100644 (file)
@@ -313,7 +313,7 @@ pub extern "C" fn Event_clone(orig: &Event) -> Event {
        orig.clone()
 }
 #[no_mangle]
-pub extern "C" fn Event_write(obj: *const Event) -> crate::c_types::derived::CVec_u8Z {
+pub extern "C" fn Event_write(obj: &Event) -> crate::c_types::derived::CVec_u8Z {
        crate::c_types::serialize_obj(&unsafe { &*obj }.to_native())
 }
 /// An event generated by ChannelManager which indicates a message should be sent to a peer (or