diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-01-03 14:05:18 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-01-03 14:05:18 +0100 |
commit | d0740a2752c7bb089dcfc666cb8933aff2587ba4 (patch) | |
tree | ad1ed808c2ca091fd42cc0254e26381f6b4c8b53 /openpgp/src/crypto/mod.rs | |
parent | 7140cffef397007746ab3d93ef15b7f3c98576b5 (diff) |
openpgp: Simplify SignatureGroup::hashes.
- The hash context knows the algorithm now.
Diffstat (limited to 'openpgp/src/crypto/mod.rs')
-rw-r--r-- | openpgp/src/crypto/mod.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/openpgp/src/crypto/mod.rs b/openpgp/src/crypto/mod.rs index 7955d810..e72ae672 100644 --- a/openpgp/src/crypto/mod.rs +++ b/openpgp/src/crypto/mod.rs @@ -191,7 +191,6 @@ pub fn hash_file<R: Read>(reader: R, algos: &[HashAlgorithm]) let hashes = mem::replace(&mut reader.cookie_mut().sig_group_mut().hashes, Default::default()); - let hashes = hashes.into_iter().map(|(_, ctx)| ctx).collect(); Ok(hashes) } |