diff options
author | Florian Schmaus <flow@gentoo.org> | 2023-01-10 10:28:08 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2023-01-10 10:28:41 +0100 |
commit | 3f81f088ac63f8a7d3ae786c30119f723e7d9c53 (patch) | |
tree | 48cbc2ab2042230a835996cf8f5ea2aa40c38b15 /app-crypt/sequoia-sq/files | |
parent | media-sound/strawberry: bump to 1.0.13 (diff) | |
download | gentoo-3f81f088ac63f8a7d3ae786c30119f723e7d9c53.tar.gz gentoo-3f81f088ac63f8a7d3ae786c30119f723e7d9c53.tar.bz2 gentoo-3f81f088ac63f8a7d3ae786c30119f723e7d9c53.zip |
app-crypt/sequoia-sq: fix compilation with newer rustc
Closes: https://bugs.gentoo.org/873085
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'app-crypt/sequoia-sq/files')
-rw-r--r-- | app-crypt/sequoia-sq/files/sequoia-sq-0.27.0-Explicitly-drop-the-Box.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app-crypt/sequoia-sq/files/sequoia-sq-0.27.0-Explicitly-drop-the-Box.patch b/app-crypt/sequoia-sq/files/sequoia-sq-0.27.0-Explicitly-drop-the-Box.patch new file mode 100644 index 000000000000..3488ac62d6ad --- /dev/null +++ b/app-crypt/sequoia-sq/files/sequoia-sq-0.27.0-Explicitly-drop-the-Box.patch @@ -0,0 +1,20 @@ +From 7916f90421ecb9a75e32f0284459bcc9a3fd02b0 Mon Sep 17 00:00:00 2001 +From: Justus Winter <justus@sequoia-pgp.org> +Date: Wed, 19 Oct 2022 14:55:58 +0200 +Subject: [PATCH] openpgp: Explicitly drop the Box. + + - Appeases the compiler that now complains about the unused result. +--- 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)); + } + } + } +-- +2.38.2 + |