notmuch: remove needless clones

async
Manos Pitsidianakis 2020-01-02 00:05:36 +02:00
parent b964a6a033
commit 3d84f3b9ad
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 0 additions and 3 deletions

View File

@ -278,10 +278,7 @@ impl MailBackend for NotmuchDb {
let tx = w.tx();
let closure = move |_work_context| {
let mut ret: Vec<Envelope> = Vec::new();
let database = database.clone();
let database_lck = database.inner.read().unwrap();
let folders = folders.clone();
let tx = tx.clone();
let mut folders_lck = folders.write().unwrap();
let folder = folders_lck.get_mut(&folder_hash).unwrap();
let query_str = std::ffi::CString::new(folder.query_str.as_str()).unwrap();