fix last two warnings

This commit is contained in:
holger krekel
2019-07-22 11:45:41 +02:00
parent 7a19963879
commit 6f79800824
2 changed files with 2 additions and 5 deletions

View File

@@ -110,7 +110,7 @@ unsafe fn dc_job_perform(context: &Context, thread: libc::c_int, probe_network:
},
);
match jobs {
Ok(ref res) => {}
Ok(ref _res) => {}
Err(ref err) => {
info!(context, 0, "query failed: {:?}", err);
}

View File

@@ -487,10 +487,7 @@ pub fn dc_msg_load_from_db<'a>(msg: *mut dc_msg_t<'a>, context: &'a Context, id:
}
);
match res {
Ok(_) => true,
Err(err) => false,
}
res.is_ok()
}
pub unsafe fn dc_get_mime_headers(context: &Context, msg_id: uint32_t) -> *mut libc::c_char {