diff options
Diffstat (limited to 'sqv')
-rw-r--r-- | sqv/src/sqv.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sqv/src/sqv.rs b/sqv/src/sqv.rs index ac78c8c5..a7ddf0e7 100644 --- a/sqv/src/sqv.rs +++ b/sqv/src/sqv.rs @@ -150,7 +150,7 @@ fn real_main() -> Result<(), failure::Error> { = sigs.iter().map(|&(ref sig, _)| sig.hash_algo()).collect(); let hashes: HashMap<_, _> = openpgp::crypto::hash_file(File::open(file)?, &hash_algos[..])? - .into_iter().collect(); + .into_iter().map(|ctx| (ctx.algo(), ctx)).collect(); fn cert_has_key(cert: &Cert, keyid: &KeyID) -> bool { // Even if a key is revoked or expired, we can still use it to |