summaryrefslogtreecommitdiff
path: root/melib/src/backends/imap/operations.rs
diff options
context:
space:
mode:
Diffstat (limited to 'melib/src/backends/imap/operations.rs')
-rw-r--r--melib/src/backends/imap/operations.rs18
1 files changed, 8 insertions, 10 deletions
diff --git a/melib/src/backends/imap/operations.rs b/melib/src/backends/imap/operations.rs
index ccb79ae4..f7b48e33 100644
--- a/melib/src/backends/imap/operations.rs
+++ b/melib/src/backends/imap/operations.rs
@@ -82,11 +82,10 @@ impl BackendOp for ImapOp {
);
let mut results = protocol_parser::fetch_responses(&response)?.1;
if results.len() != 1 {
- return Err(Error::new(format!(
- "Invalid/unexpected response: {:?}",
- response
- ))
- .set_summary(format!("message with UID {} was not found?", uid)));
+ return Err(
+ Error::new(format!("Invalid/unexpected response: {:?}", response))
+ .set_summary(format!("message with UID {} was not found?", uid)),
+ );
}
let FetchResponse {
uid: _uid,
@@ -147,11 +146,10 @@ impl BackendOp for ImapOp {
debug!(String::from_utf8_lossy(&response));
/* TODO: Trigger cache invalidation here. */
debug!("message with UID {} was not found", uid);
- return Err(Error::new(format!(
- "Invalid/unexpected response: {:?}",
- response
- ))
- .set_summary(format!("message with UID {} was not found?", uid)));
+ return Err(
+ Error::new(format!("Invalid/unexpected response: {:?}", response))
+ .set_summary(format!("message with UID {} was not found?", uid)),
+ );
}
let (_uid, (_flags, _)) = v[0];
assert_eq!(_uid, uid);