🐛 fix(cli): correct label adding to use non-async function

- fix label adding to use non-async function
This commit is contained in:
Jeremiah Russell
2025-10-14 07:27:28 +01:00
committed by Jeremiah Russell
parent 7b9be5f243
commit b6a53461ce

View File

@@ -22,7 +22,7 @@ impl TrashCli {
pub(crate) async fn run(&self, client: &mut GmailClient) -> Result<(), Error> { pub(crate) async fn run(&self, client: &mut GmailClient) -> Result<(), Error> {
if !self.labels.is_empty() { if !self.labels.is_empty() {
// add labels if any specified // add labels if any specified
client.add_labels(&self.labels).await?; client.add_labels(&self.labels)?;
} }
if let Some(query) = self.query.as_ref() { if let Some(query) = self.query.as_ref() {