diff options
author | Azul <azul@riseup.net> | 2020-12-09 20:26:52 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2020-12-10 13:57:19 +0100 |
commit | 227db80b9d40526387f1e4a64f90464618fb885b (patch) | |
tree | bcf1ab1ed4d61fffea8d382872262650c5f49d86 /autocrypt | |
parent | 80b59ecf7b33dcd2392eee8b4e2def4101410749 (diff) |
buffered-reader: Require Cookies to be Send and Sync.
- This way the entire `BufferedReader<C>` will be `Send` and `Sync`.
- Modify all other crates accordingly.
- See #615.
Diffstat (limited to 'autocrypt')
-rw-r--r-- | autocrypt/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autocrypt/src/lib.rs b/autocrypt/src/lib.rs index 3b52cb69..7a51b5f3 100644 --- a/autocrypt/src/lib.rs +++ b/autocrypt/src/lib.rs @@ -538,7 +538,7 @@ impl AutocryptSetupMessage { /// Parses the autocrypt setup message in `r`. /// /// `passcode` is the passcode used to protect the message. - pub fn from_reader<'a, R: io::Read + 'a>(r: R) + pub fn from_reader<'a, R: io::Read + Send + Sync + 'a>(r: R) -> Result<AutocryptSetupMessageParser<'a>> { // The outer message uses ASCII-armor. It includes a password // hint. Hence, we need to parse it aggressively. |