summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.dev>2024-05-12 17:10:46 +0900
committerMatan Kushner <hello@matchai.dev>2024-05-12 17:10:46 +0900
commit168cd8fd1cd146850a7bf2e4963f523f1b94339b (patch)
tree3e6a89fec7106b305066c5a1ea464ac5af19e485
parent42c211069612d1c879cad337f9ad6942bed5d893 (diff)
New translations readme.md (Spanish)
-rw-r--r--docs/es-ES/guide/README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/es-ES/guide/README.md b/docs/es-ES/guide/README.md
index af421e5dc..d19341006 100644
--- a/docs/es-ES/guide/README.md
+++ b/docs/es-ES/guide/README.md
@@ -431,6 +431,8 @@ Por favor, revisa estas obras anteriores que ayudaron a inspirar la creación de
Apoya este proyecto [convirtiéndote en patrocinador](https://github.com/sponsors/starship). Tu nombre o logo aparecerá aquí con un enlace a tu sitio web.
+- Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org)
+
<p align="center">
<br>
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon">
documentation'>neal/cert-documentation Mirror of https://gitlab.com/sequoia-pgp/sequoia.gitmatthias
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-27 14:45:12 +0300
committerLars Wirzenius <liw@sequoia-pgp.org>2021-09-30 08:31:08 +0300
commit2c87795bd765f50363cdee71013848b1c3138604 (patch)
tree92e180e4da2954852a1d6e0388f3cefb9098a1cd
parent1b70924cc49ea1aa36f06acba8561f125439ca1b (diff)
Use .find() in an iterator
Instead of iter().filter(|x| pred(x)).next() use this: iter().find(|x| pred(x)) This is more to the point, and thus easier to understand. Found by clippy lint filter_next: https://rust-lang.github.io/rust-clippy/master/index.html#filter_next
Diffstat
-rw-r--r--sq/src/commands/key.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/sq/src/commands/key.rs b/sq/src/commands/key.rs
index a6562ef5..fc1c5a85 100644
--- a/sq/src/commands/key.rs
+++ b/sq/src/commands/key.rs
@@ -420,12 +420,11 @@ fn adopt(config: Config, m: &ArgMatches) -> Result<()> {
.into_keypair()?;
let backsig = builder.embedded_signatures()
- .filter(|backsig| {
+ .find(|backsig| {
(*backsig).clone().verify_primary_key_binding(
&cert.primary_key(),
&key).is_ok()
})
- .next()
.map(|sig| SignatureBuilder::from(sig.clone()))
.unwrap_or_else(|| {
SignatureBuilder::new(SignatureType::PrimaryKeyBinding)