diff options
-rw-r--r-- | lib/domain/libimagmail/src/store.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/domain/libimagmail/src/store.rs b/lib/domain/libimagmail/src/store.rs index 8f6f2cd8..7a01dd1d 100644 --- a/lib/domain/libimagmail/src/store.rs +++ b/lib/domain/libimagmail/src/store.rs @@ -123,11 +123,12 @@ impl<'a> MailStoreWithConnection<'a> { .ok_or_else(|| format_err!("Cannot find root message: {}", root_id))?; trace!("Getting mail from connection: {:?}", root); - let root = root.load(self.connection())? + let loaded_root = root.load(self.connection())? .ok_or_else(|| format_err!("Cannot load root message: {}", root_id))?; - trace!("Filling mailtree from: {:?}, {:?}", self, root); - Mailtree::fill_from(self, root) + drop(root); + trace!("Filling mailtree from: {:?}, {:?}", self, loaded_root); + Mailtree::fill_from(self, loaded_root) } fn create_entry_for_id(&self, id: Cow<str>) -> Result<FileLockEntry<'a>> { |