diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-07 16:12:06 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-09 13:13:58 +0200 |
commit | a23a14d0471512d360364b69df51161e84c9e0d0 (patch) | |
tree | 96f9c3d1ba810656bc72788bb354d727772b4fb9 /openpgp/src/parse | |
parent | 0c538f122d7a498a58f9b380b6be03a40f827c3e (diff) |
Lint: Remove redundant closures.
- https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
Diffstat (limited to 'openpgp/src/parse')
-rw-r--r-- | openpgp/src/parse/hashed_reader.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/parse/hashed_reader.rs b/openpgp/src/parse/hashed_reader.rs index 4db0a0ee..2d301b1e 100644 --- a/openpgp/src/parse/hashed_reader.rs +++ b/openpgp/src/parse/hashed_reader.rs @@ -422,7 +422,7 @@ mod test { let mut reader = HashedReader::new(reader, HashesFor::MDC, test.expected.keys().cloned() - .map(|algo| HashingMode::Binary(algo)) + .map(HashingMode::Binary) .collect()); assert_eq!(reader.steal_eof().unwrap(), test.data); @@ -485,7 +485,7 @@ mod test { hash_buffered_reader( reader, &expected.keys().cloned() - .map(|algo| HashingMode::Binary(algo)). + .map(HashingMode::Binary). collect::<Vec<_>>()) .unwrap(); |