mirror of
https://github.com/chatmail/core.git
synced 2026-05-24 17:26:30 +03:00
cargo fmt
This commit is contained in:
10
src/imap.rs
10
src/imap.rs
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user