♻️ 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:
committed by
Jeremiah Russell
parent
0dc8f8c47b
commit
3dab10fdfe
@@ -59,7 +59,7 @@ impl MessageList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Add label to the labels collection
|
/// 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:?}");
|
log::debug!("labels from command line: {labels:?}");
|
||||||
let mut label_ids = Vec::new();
|
let mut label_ids = Vec::new();
|
||||||
for label in labels {
|
for label in labels {
|
||||||
|
|||||||
Reference in New Issue
Block a user