diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2022-10-19 14:55:58 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2022-10-19 14:55:58 +0200 |
commit | 7916f90421ecb9a75e32f0284459bcc9a3fd02b0 (patch) | |
tree | 9370ea635aa3fee1ff691cc674f57cbb6a74d5fc | |
parent | 8696501c12300e9d1781e75f7ff423e60eeffe41 (diff) |
openpgp: Explicitly drop the Box.941-rfe-future-proofing-against-newly-added-algorithms
- Appeases the compiler that now complains about the unused result.
-rw-r--r-- | openpgp/src/crypto/mem.rs | 2 |
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)); } } } |