address @dignifiedquire rustyness comment and fix changelog

This commit is contained in:
holger krekel
2019-07-17 12:31:12 +02:00
parent ad4be80b4e
commit 475a41beb3
2 changed files with 8 additions and 3 deletions

View File

@@ -135,7 +135,7 @@ pub fn dc_context_new(
userdata: *mut libc::c_void,
os_name: *const libc::c_char,
) -> Context {
let context = Context {
Context {
blobdir: Arc::new(RwLock::new(std::ptr::null_mut())),
dbfile: Arc::new(RwLock::new(std::ptr::null_mut())),
inbox: Arc::new(RwLock::new({
@@ -179,8 +179,7 @@ pub fn dc_context_new(
))),
probe_imap_network: Arc::new(RwLock::new(0)),
perform_inbox_jobs_needed: Arc::new(RwLock::new(0)),
};
context
}
}
unsafe fn cb_receive_imf(