mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
cargo fmt
This commit is contained in:
@@ -455,9 +455,7 @@ pub unsafe extern "C" fn dc_configure(context: *mut dc_context_t) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let ffi_context = &*context;
|
let ffi_context = &*context;
|
||||||
ffi_context
|
ffi_context.with_inner(|ctx| ctx.configure()).unwrap_or(())
|
||||||
.with_inner(|ctx| ctx.configure())
|
|
||||||
.unwrap_or(())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
@@ -479,9 +477,7 @@ pub unsafe extern "C" fn dc_run(context: *mut dc_context_t) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let ffi_context = &*context;
|
let ffi_context = &*context;
|
||||||
ffi_context
|
ffi_context.with_inner(|ctx| ctx.run()).unwrap_or(())
|
||||||
.with_inner(|ctx| ctx.run())
|
|
||||||
.unwrap_or(())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
@@ -491,12 +487,9 @@ pub unsafe extern "C" fn dc_shutdown(context: *mut dc_context_t) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let ffi_context = &*context;
|
let ffi_context = &*context;
|
||||||
ffi_context
|
ffi_context.with_inner(|ctx| ctx.shutdown()).unwrap_or(())
|
||||||
.with_inner(|ctx| ctx.shutdown())
|
|
||||||
.unwrap_or(())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_maybe_network(context: *mut dc_context_t) {
|
pub unsafe extern "C" fn dc_maybe_network(context: *mut dc_context_t) {
|
||||||
if context.is_null() {
|
if context.is_null() {
|
||||||
|
|||||||
Reference in New Issue
Block a user