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