Drop dependency itertools.
This commit is contained in:
parent
1f6e079947
commit
9861598940
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -3568,7 +3568,6 @@ dependencies = [
|
||||
"fs_extra",
|
||||
"humantime",
|
||||
"indicatif",
|
||||
"itertools",
|
||||
"libc",
|
||||
"once_cell",
|
||||
"predicates",
|
||||
|
@ -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" }
|
||||
|
@ -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(", "),
|
||||
));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user