cargo fmt

This commit is contained in:
holger krekel
2019-08-20 09:03:36 +02:00
parent 37d20bfb5c
commit 55b62b0b7d

View File

@@ -1203,7 +1203,7 @@ impl Imap {
ImapResult::Failed ImapResult::Failed
} else { } else {
ImapResult::RetryLater ImapResult::RetryLater
} };
} }
let set = format!("{}", uid); let set = format!("{}", uid);
if let Some(ref mut session) = &mut *self.session.lock().unwrap() { if let Some(ref mut session) = &mut *self.session.lock().unwrap() {
@@ -1231,7 +1231,7 @@ impl Imap {
// message was NOT moved, let's try copy // message was NOT moved, let's try copy
if let Some(ref mut session) = &mut *self.session.lock().unwrap() { if let Some(ref mut session) = &mut *self.session.lock().unwrap() {
match session.uid_copy(&set, &dest_folder) { match session.uid_copy(&set, &dest_folder) {
Ok(_) => {}, Ok(_) => {}
Err(err) => { Err(err) => {
info!(context, 0, "Cannot copy message. {:?}", err); info!(context, 0, "Cannot copy message. {:?}", err);
return ImapResult::Failed; return ImapResult::Failed;
@@ -1414,10 +1414,10 @@ impl Imap {
server_uid: &mut u32, server_uid: &mut u32,
) -> ImapResult { ) -> ImapResult {
if *server_uid == 0 { if *server_uid == 0 {
return ImapResult::Failed return ImapResult::Failed;
} }
if !self.is_connected() { if !self.is_connected() {
return ImapResult::RetryLater return ImapResult::RetryLater;
} }
info!( info!(
context, context,
@@ -1435,7 +1435,7 @@ impl Imap {
"Cannot select folder {} for deleting message.", "Cannot select folder {} for deleting message.",
folder.as_ref() folder.as_ref()
); );
return ImapResult::RetryLater return ImapResult::RetryLater;
} }
{ {
let set = format!("{}", server_uid); let set = format!("{}", server_uid);