🐛 fix(cli): correct label adding to use non-async function
- fix label adding to use non-async function
This commit is contained in:
committed by
Jeremiah Russell
parent
7b9be5f243
commit
b6a53461ce
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user