summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-11-10 15:26:42 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-11-12 10:31:29 +0100
commitc93f7d53ecf9700eed6245b81031b7512f8ec604 (patch)
tree05cfc4791c3cdda7e88308fb37a6f953b77b08dc /openpgp/src/serialize.rs
parent476ec660e251f385376f5a166de061749925fd46 (diff)
openpgp: Make crypto::Hash::digest fallible.
Diffstat (limited to 'openpgp/src/serialize.rs')
-rw-r--r--openpgp/src/serialize.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/serialize.rs b/openpgp/src/serialize.rs
index 28bc015c..f363c448 100644
--- a/openpgp/src/serialize.rs
+++ b/openpgp/src/serialize.rs
@@ -1097,7 +1097,7 @@ impl crypto::mpi::SecretKeyMaterial {
let mut hash = HashAlgorithm::SHA1.context().unwrap();
self.serialize(&mut hash)?;
let mut digest = [0u8; 20];
- hash.digest(&mut digest);
+ let _ = hash.digest(&mut digest);
w.write_all(&digest)?;
},
crypto::mpi::SecretKeyChecksum::Sum16 => {