♻️ refactor(message_list): update add_labels function to accept &GmailClient

- modify add_labels function to accept a reference to GmailClient
This commit is contained in:
Jeremiah Russell
2025-10-13 13:45:08 +01:00
committed by Jeremiah Russell
parent 0dc8f8c47b
commit 3dab10fdfe

View File

@@ -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 {