Drop dependency itertools.

This commit is contained in:
Justus Winter 2024-09-03 16:40:11 +02:00
parent 1f6e079947
commit 9861598940
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386
3 changed files with 4 additions and 5 deletions

1
Cargo.lock generated
View File

@ -3568,7 +3568,6 @@ dependencies = [
"fs_extra",
"humantime",
"indicatif",
"itertools",
"libc",
"once_cell",
"predicates",

View File

@ -42,7 +42,6 @@ chrono = "0.4.10"
clap = { version = "4", features = ["derive", "env", "string", "wrap_help"] }
humantime = "2"
indicatif = "0.17"
itertools = ">=0.10, <0.13"
once_cell = "1.17"
sequoia-cert-store = "0.6.0"
sequoia-keystore = { version = ">=0.5, <0.7" }

View File

@ -5,7 +5,6 @@ use std::time::SystemTime;
use anyhow::Context;
use anyhow::anyhow;
use itertools::Itertools;
use sequoia_openpgp as openpgp;
use openpgp::cert::amalgamation::ValidAmalgamation;
@ -228,7 +227,8 @@ fn userid_add(
if !exists.is_empty() {
return Err(anyhow::anyhow!(
"The certificate already contains the User ID(s) {}.",
exists.iter().map(|s| format!("{:?}", s)).join(", ")
exists.iter().map(|s| format!("{:?}", s)).collect::<Vec<_>>()
.join(", "),
));
}
@ -415,7 +415,8 @@ fn userid_strip_internal(
if !missing.is_empty() {
return Err(anyhow::anyhow!(
"The certificate doesn't contain the User ID(s) {}.",
missing.iter().map(|s| format!("{:?}", s)).join(", ")
missing.iter().map(|s| format!("{:?}", s)).collect::<Vec<_>>()
.join(", "),
));
}