summaryrefslogtreecommitdiffstats
path: root/openpgp/src/regex
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-04-07 16:12:06 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-04-09 13:13:58 +0200
commita23a14d0471512d360364b69df51161e84c9e0d0 (patch)
tree96f9c3d1ba810656bc72788bb354d727772b4fb9 /openpgp/src/regex
parent0c538f122d7a498a58f9b380b6be03a40f827c3e (diff)
Lint: Remove redundant closures.
- https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
Diffstat (limited to 'openpgp/src/regex')
-rw-r--r--openpgp/src/regex/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/regex/mod.rs b/openpgp/src/regex/mod.rs
index c45e0eb0..31e3c7e3 100644
--- a/openpgp/src/regex/mod.rs
+++ b/openpgp/src/regex/mod.rs
@@ -308,7 +308,7 @@ fn generate_class(caret: bool, chars: impl Iterator<Item=char>) -> Hir
// Pad it out so what we can use windows to get three
// characters at a time, and be sure to process all
// characters.
- .map(|c| Some(c))
+ .map(Some)
.chain(std::iter::once(None))
.chain(std::iter::once(None))
.collect();