From a8e6dea162c341ef8a9c82869ddd80511d029b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Sat, 9 Mar 2024 11:06:05 +0100 Subject: [PATCH] bump email-lib --- Cargo.lock | 2 +- src/email/envelope/command/list.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b7ee1cc..da04ec4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1218,7 +1218,7 @@ dependencies = [ [[package]] name = "email-lib" version = "0.22.3" -source = "git+https://git.sr.ht/~soywod/pimalaya#17838306e588fd1382da4b49ec1ed9ff846f33f0" +source = "git+https://git.sr.ht/~soywod/pimalaya#2ddfe15f9b10e8e53ab9b04db465abc58c68b67e" dependencies = [ "advisory-lock", "anyhow", diff --git a/src/email/envelope/command/list.rs b/src/email/envelope/command/list.rs index 5766390..7976c92 100644 --- a/src/email/envelope/command/list.rs +++ b/src/email/envelope/command/list.rs @@ -102,13 +102,12 @@ impl ListEnvelopesCommand { let query = self .query .map(|query| query.join(" ").parse::()); - let query = match query { None => None, Some(Ok(query)) => Some(query), Some(Err(main_err)) => { let source = "query"; - let email::search_query::Error::ParseError(errs, query) = &main_err; + let email::search_query::parser::Error::ParseError(errs, query) = &main_err; for err in errs { Report::build(ReportKind::Error, source, err.span().start) .with_message(main_err.to_string())