summaryrefslogtreecommitdiffstats
path: root/autocrypt
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-11-24 10:45:29 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-12-07 15:57:42 +0100
commit551f29499a3ca9c5b15692ac7877730808dda8cb (patch)
treee84fb3c3d3bb0390d248a874d1fdd192a64dd0d0 /autocrypt
parente524ef5fbc97c0c54b8144aed81c383faa099173 (diff)
openpgp: Make serialize::stream::Message Send + Sync.
- See #615.
Diffstat (limited to 'autocrypt')
-rw-r--r--autocrypt/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/autocrypt/src/lib.rs b/autocrypt/src/lib.rs
index a82a1952..3b52cb69 100644
--- a/autocrypt/src/lib.rs
+++ b/autocrypt/src/lib.rs
@@ -480,7 +480,9 @@ impl AutocryptSetupMessage {
/// Generates the Autocrypt Setup Message.
///
/// The message is written to `w`.
- pub fn serialize<W: io::Write>(&mut self, w: &mut W) -> Result<()> {
+ pub fn serialize<W>(&mut self, w: &mut W) -> Result<()>
+ where W: io::Write + Send + Sync,
+ {
// The outer message is an ASCII-armored encoded message
// containing a single SK-ESK and a single SEIP packet. The
// SEIP packet contains a literal data packet whose content is