cargo fmt

This commit is contained in:
jikstra
2019-09-13 22:25:18 +02:00
parent 75b7de712a
commit e59f421e79

View File

@@ -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"
}
let context = &*context;
if let Some(message) = chat::get_draft(context, chat_id) {
let ffi_msg = MessageWrapper { context, message };
return Box::into_raw(Box::new(ffi_msg));