bump email-lib

This commit is contained in:
Clément DOUIN 2024-03-09 11:06:05 +01:00
parent 46bf3eebfc
commit a8e6dea162
No known key found for this signature in database
GPG key ID: 353E4A18EE0FAB72
2 changed files with 2 additions and 3 deletions

2
Cargo.lock generated
View file

@ -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",

View file

@ -102,13 +102,12 @@ impl ListEnvelopesCommand {
let query = self
.query
.map(|query| query.join(" ").parse::<SearchEmailsQuery>());
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())