diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-05-10 22:33:11 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-05-11 21:01:40 +0300 |
commit | a6af7fc0d3d9608190a39155be1d3073b038c48e (patch) | |
tree | d54a6df12a2b9588ccd824eb69081b04a84d3c6b /src/components/mail/listing.rs | |
parent | b2857955e49d02cbd4dfcbb3366c360a776a33ad (diff) |
listing.rs: don't create unnecessary operation
Diffstat (limited to 'src/components/mail/listing.rs')
-rw-r--r-- | src/components/mail/listing.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/components/mail/listing.rs b/src/components/mail/listing.rs index b832c632..86eabfc7 100644 --- a/src/components/mail/listing.rs +++ b/src/components/mail/listing.rs @@ -199,8 +199,6 @@ pub trait MailListingTrait: ListingTrait { continue; } ListingAction::Tag(Remove(ref tag_str)) => { - let backend_lck = account.backend.write().unwrap(); - let mut op = backend_lck.operation(envelope.hash()); if let Err(err) = op.set_tag(&mut envelope, tag_str.to_string(), false) { context.replies.push_back(UIEvent::Notification( Some("Could not set tag.".to_string()), @@ -211,9 +209,6 @@ pub trait MailListingTrait: ListingTrait { } } ListingAction::Tag(Add(ref tag_str)) => { - let backend_lck = account.backend.write().unwrap(); - let mut op = backend_lck.operation(envelope.hash()); - if let Err(err) = op.set_tag(&mut envelope, tag_str.to_string(), true) { context.replies.push_back(UIEvent::Notification( Some("Could not set tag.".to_string()), |