summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet_pile.rs
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2020-12-09 20:26:52 +0100
committerAzul <azul@riseup.net>2020-12-10 13:57:19 +0100
commit227db80b9d40526387f1e4a64f90464618fb885b (patch)
treebcf1ab1ed4d61fffea8d382872262650c5f49d86 /openpgp/src/packet_pile.rs
parent80b59ecf7b33dcd2392eee8b4e2def4101410749 (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 'openpgp/src/packet_pile.rs')
-rw-r--r--openpgp/src/packet_pile.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/packet_pile.rs b/openpgp/src/packet_pile.rs
index 09a432b2..330d02cf 100644
--- a/openpgp/src/packet_pile.rs
+++ b/openpgp/src/packet_pile.rs
@@ -137,7 +137,7 @@ impl<'a> Parse<'a, PacketPile> for PacketPile {
///
/// [`PacketParser`]: parse/struct.PacketParser.html
/// [`PacketPileParser`]: parse/struct.PacketPileParser.html
- fn from_reader<R: 'a + io::Read>(reader: R) -> Result<PacketPile> {
+ fn from_reader<R: 'a + io::Read + Send + Sync>(reader: R) -> Result<PacketPile> {
let bio = buffered_reader::Generic::with_cookie(
reader, None, Cookie::default());
PacketPile::from_buffered_reader(Box::new(bio))