mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 23:36:30 +03:00
properly fix the QueryReturnedNoRows warning and rustfmt
This commit is contained in:
@@ -515,9 +515,7 @@ pub unsafe fn dc_receive_imf(
|
||||
(*part).bytes,
|
||||
hidden,
|
||||
if 0 != save_mime_headers {
|
||||
let body_string = unsafe {
|
||||
std::str::from_utf8(std::slice::from_raw_parts(imf_raw_not_terminated as *const u8, imf_raw_bytes)).unwrap()
|
||||
};
|
||||
let body_string = std::str::from_utf8(std::slice::from_raw_parts(imf_raw_not_terminated as *const u8, imf_raw_bytes)).unwrap();
|
||||
|
||||
Some(body_string)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user