mirror of
https://github.com/chatmail/core.git
synced 2026-05-24 17:26:30 +03:00
run cargo fmt
This commit is contained in:
@@ -893,9 +893,7 @@ pub unsafe fn dc_mimefactory_render(mut factory: *mut dc_mimefactory_t) -> libc:
|
|||||||
);
|
);
|
||||||
let mime_fields = mailmime_fields_new_filename(
|
let mime_fields = mailmime_fields_new_filename(
|
||||||
MAILMIME_DISPOSITION_TYPE_ATTACHMENT as libc::c_int,
|
MAILMIME_DISPOSITION_TYPE_ATTACHMENT as libc::c_int,
|
||||||
dc_strdup(
|
dc_strdup(b"message.kml\x00" as *const u8 as *const libc::c_char),
|
||||||
b"message.kml\x00" as *const u8 as *const libc::c_char,
|
|
||||||
),
|
|
||||||
MAILMIME_MECHANISM_8BIT as libc::c_int,
|
MAILMIME_MECHANISM_8BIT as libc::c_int,
|
||||||
);
|
);
|
||||||
let kml_mime_part = mailmime_new_empty(content_type, mime_fields);
|
let kml_mime_part = mailmime_new_empty(content_type, mime_fields);
|
||||||
@@ -913,17 +911,13 @@ pub unsafe fn dc_mimefactory_render(mut factory: *mut dc_mimefactory_t) -> libc:
|
|||||||
&mut last_added_location_id,
|
&mut last_added_location_id,
|
||||||
);
|
);
|
||||||
if !kml_file.is_null() {
|
if !kml_file.is_null() {
|
||||||
let content_type: *mut mailmime_content =
|
let content_type: *mut mailmime_content = mailmime_content_new_with_str(
|
||||||
mailmime_content_new_with_str(
|
|
||||||
b"application/vnd.google-earth.kml+xml\x00" as *const u8
|
b"application/vnd.google-earth.kml+xml\x00" as *const u8
|
||||||
as *const libc::c_char,
|
as *const libc::c_char,
|
||||||
);
|
);
|
||||||
let mime_fields: *mut mailmime_fields =
|
let mime_fields: *mut mailmime_fields = mailmime_fields_new_filename(
|
||||||
mailmime_fields_new_filename(
|
|
||||||
MAILMIME_DISPOSITION_TYPE_ATTACHMENT as libc::c_int,
|
MAILMIME_DISPOSITION_TYPE_ATTACHMENT as libc::c_int,
|
||||||
dc_strdup(
|
dc_strdup(b"location.kml\x00" as *const u8 as *const libc::c_char),
|
||||||
b"location.kml\x00" as *const u8 as *const libc::c_char,
|
|
||||||
),
|
|
||||||
MAILMIME_MECHANISM_8BIT as libc::c_int,
|
MAILMIME_MECHANISM_8BIT as libc::c_int,
|
||||||
);
|
);
|
||||||
let kml_mime_part: *mut mailmime =
|
let kml_mime_part: *mut mailmime =
|
||||||
@@ -997,8 +991,7 @@ pub unsafe fn dc_mimefactory_render(mut factory: *mut dc_mimefactory_t) -> libc:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ok_to_continue {
|
if ok_to_continue {
|
||||||
if (*factory).loaded as libc::c_uint
|
if (*factory).loaded as libc::c_uint == DC_MF_MDN_LOADED as libc::c_int as libc::c_uint
|
||||||
== DC_MF_MDN_LOADED as libc::c_int as libc::c_uint
|
|
||||||
{
|
{
|
||||||
let e = CString::new(
|
let e = CString::new(
|
||||||
(*factory)
|
(*factory)
|
||||||
|
|||||||
Reference in New Issue
Block a user