mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 00:46:31 +03:00
rustfmt
This commit is contained in:
@@ -1050,11 +1050,7 @@ pub unsafe fn dc_job_do_DC_JOB_CONFIGURE_IMAP(context: &Context, _job: *mut dc_j
|
|||||||
dc_free_ongoing(context);
|
dc_free_ongoing(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
context.call_cb(
|
context.call_cb(Event::CONFIGURE_PROGRESS, if success { 1000 } else { 0 }, 0);
|
||||||
Event::CONFIGURE_PROGRESS,
|
|
||||||
if success { 1000 } else { 0 },
|
|
||||||
0,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub unsafe fn dc_free_ongoing(context: &Context) {
|
pub unsafe fn dc_free_ongoing(context: &Context) {
|
||||||
|
|||||||
@@ -58,7 +58,6 @@ pub unsafe fn dc_perform_imap_jobs(context: &Context) {
|
|||||||
info!(context, 0, "dc_perform_imap_jobs ended.",);
|
info!(context, 0, "dc_perform_imap_jobs ended.",);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
unsafe fn dc_job_perform(context: &Context, thread: libc::c_int, probe_network: libc::c_int) {
|
unsafe fn dc_job_perform(context: &Context, thread: libc::c_int, probe_network: libc::c_int) {
|
||||||
let process_row = |row: &rusqlite::Row| {
|
let process_row = |row: &rusqlite::Row| {
|
||||||
let job = dc_job_t {
|
let job = dc_job_t {
|
||||||
|
|||||||
@@ -559,12 +559,7 @@ impl Imap {
|
|||||||
Some(ref mut session) => {
|
Some(ref mut session) => {
|
||||||
if let Ok(caps) = session.capabilities() {
|
if let Ok(caps) = session.capabilities() {
|
||||||
if !context.sql.is_open() {
|
if !context.sql.is_open() {
|
||||||
warn!(
|
warn!(context, 0, "IMAP-LOGIN as {} ok but ABORTING", lp.mail_user,);
|
||||||
context,
|
|
||||||
0,
|
|
||||||
"IMAP-LOGIN as {} ok but ABORTING",
|
|
||||||
lp.mail_user,
|
|
||||||
);
|
|
||||||
teardown = true;
|
teardown = true;
|
||||||
} else {
|
} else {
|
||||||
let can_idle = caps.has("IDLE");
|
let can_idle = caps.has("IDLE");
|
||||||
|
|||||||
Reference in New Issue
Block a user