summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2022-10-19 14:55:58 +0200
committerJustus Winter <justus@sequoia-pgp.org>2022-10-19 14:55:58 +0200
commit7916f90421ecb9a75e32f0284459bcc9a3fd02b0 (patch)
tree9370ea635aa3fee1ff691cc674f57cbb6a74d5fc
parent8696501c12300e9d1781e75f7ff423e60eeffe41 (diff)
- Appeases the compiler that now complains about the unused result.
-rw-r--r--openpgp/src/crypto/mem.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/crypto/mem.rs b/openpgp/src/crypto/mem.rs
index 9af1936c..daba4595 100644
--- a/openpgp/src/crypto/mem.rs
+++ b/openpgp/src/crypto/mem.rs
@@ -159,7 +159,7 @@ impl Drop for Protected {
unsafe {
let len = self.len();
memsec::memzero(self.as_mut().as_mut_ptr(), len);
- Box::from_raw(self.0);
+ drop(Box::from_raw(self.0));
}
}
}