mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
cargo fmt
This commit is contained in:
@@ -552,7 +552,7 @@ pub unsafe extern "C" fn dc_get_draft(context: *mut dc_context_t, chat_id: u32)
|
|||||||
return ptr::null_mut(); // NULL explicitly defined as "no draft"
|
return ptr::null_mut(); // NULL explicitly defined as "no draft"
|
||||||
}
|
}
|
||||||
let context = &*context;
|
let context = &*context;
|
||||||
|
|
||||||
if let Some(message) = chat::get_draft(context, chat_id) {
|
if let Some(message) = chat::get_draft(context, chat_id) {
|
||||||
let ffi_msg = MessageWrapper { context, message };
|
let ffi_msg = MessageWrapper { context, message };
|
||||||
return Box::into_raw(Box::new(ffi_msg));
|
return Box::into_raw(Box::new(ffi_msg));
|
||||||
|
|||||||
Reference in New Issue
Block a user