From 66e53e6804e3af3530a1f300a2921aae2bbe924d Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Fri, 11 Oct 2019 03:24:16 +0300 Subject: [PATCH] Return bool from Imap::fetch() It is unused anyway --- src/imap.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/imap.rs b/src/imap.rs index f45529adf..0a8958947 100644 --- a/src/imap.rs +++ b/src/imap.rs @@ -598,9 +598,9 @@ impl Imap { self.config.write().unwrap().watch_folder = Some(watch_folder); } - pub fn fetch(&self, context: &Context) -> libc::c_int { + pub fn fetch(&self, context: &Context) -> bool { if !self.is_connected() || !context.sql.is_open() { - return 0; + return false; } self.setup_handle_if_needed(context); @@ -616,9 +616,9 @@ impl Imap { break; } } - 1 + true } else { - 0 + false } }