From d1dca4ac27e89fd513626cdf8e4d4dd54959476c Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Mon, 10 Apr 2023 15:49:49 +0300 Subject: [PATCH] melib/imap: fix imap cache without sqlite3 not compiling --- melib/src/backends/imap/cache.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/melib/src/backends/imap/cache.rs b/melib/src/backends/imap/cache.rs index f0bca452f..99457c24a 100644 --- a/melib/src/backends/imap/cache.rs +++ b/melib/src/backends/imap/cache.rs @@ -684,20 +684,20 @@ mod default_m { pub struct DefaultCache; impl DefaultCache { - pub fn get(_uid_store: Arc) -> Result> { + pub fn get(_: Arc) -> Result> { Ok(Box::new(Self)) } } impl ImapCacheReset for DefaultCache { - fn reset_db(uid_store: &UIDStore) -> Result<()> { + fn reset_db(_: &UIDStore) -> Result<()> { Err(Error::new("melib is not built with any imap cache").set_kind(ErrorKind::Bug)) } } impl ImapCache for DefaultCache { fn reset(&mut self) -> Result<()> { - DefaultCache::reset_db(&self.uid_store) + Err(Error::new("melib is not built with any imap cache").set_kind(ErrorKind::Bug)) } fn mailbox_state(&mut self, _mailbox_hash: MailboxHash) -> Result> {