diff options
Diffstat (limited to 'melib/src/mailbox/collection.rs')
-rw-r--r-- | melib/src/mailbox/collection.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/melib/src/mailbox/collection.rs b/melib/src/mailbox/collection.rs index a44d895d..72bec79a 100644 --- a/melib/src/mailbox/collection.rs +++ b/melib/src/mailbox/collection.rs @@ -103,7 +103,11 @@ impl Collection { env.set_hash(new_hash); self.envelopes.insert(new_hash, env); { - if self.threads.update_envelope(old_hash, new_hash, &self.envelopes).is_ok() { + if self + .threads + .update_envelope(old_hash, new_hash, &self.envelopes) + .is_ok() + { return; } } @@ -119,7 +123,11 @@ impl Collection { let new_hash = envelope.hash(); self.envelopes.insert(new_hash, envelope); { - if self.threads.update_envelope(old_hash, new_hash, &self.envelopes).is_ok() { + if self + .threads + .update_envelope(old_hash, new_hash, &self.envelopes) + .is_ok() + { return; } } |