From ca1ab60c5005d000f105771d47f21c3d02caa6e5 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Thu, 9 Oct 2025 16:39:21 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(labels):=20simpli?= =?UTF-8?q?fy=20error=20handling=20in=20labels=20module?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - use `crate::Result` alias for `Result` to reduce redundancy --- src/labels.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/labels.rs b/src/labels.rs index a996905..2dd2227 100644 --- a/src/labels.rs +++ b/src/labels.rs @@ -11,7 +11,7 @@ use google_gmail1::{ yup_oauth2::{ApplicationSecret, InstalledFlowAuthenticator, InstalledFlowReturnMethod}, }; -use crate::{Credential, Error}; +use crate::{Credential, Result}; /// Default for the maximum number of results to return on a page pub const DEFAULT_MAX_RESULTS: &str = "10"; @@ -34,7 +34,7 @@ impl std::fmt::Debug for Labels { impl Labels { /// Create a new List struct and add the Gmail api connection. - pub async fn new(credential: &str, show: bool) -> Result { + pub async fn new(credential: &str, show: bool) -> Result { let (config_dir, secret) = { let config_dir = crate::utils::assure_config_dir_exists("~/.cull-gmail")?;