From 3dab10fdfe393ce3ffbf2f1b33fe9070738a99aa Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Mon, 13 Oct 2025 13:45:08 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(message=5Flist):?= =?UTF-8?q?=20update=20add=5Flabels=20function=20to=20accept=20&GmailClien?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - modify add_labels function to accept a reference to GmailClient --- src/message_list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/message_list.rs b/src/message_list.rs index 9b4b31a..fd37d00 100644 --- a/src/message_list.rs +++ b/src/message_list.rs @@ -59,7 +59,7 @@ impl MessageList { } /// Add label to the labels collection - pub async fn add_labels(&mut self, client: GmailClient, labels: &[String]) -> Result<()> { + pub async fn add_labels(&mut self, client: &GmailClient, labels: &[String]) -> Result<()> { log::debug!("labels from command line: {labels:?}"); let mut label_ids = Vec::new(); for label in labels {