summaryrefslogtreecommitdiffstats
path: root/sq/src/commands/mod.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 /sq/src/commands/mod.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 'sq/src/commands/mod.rs')
-rw-r--r--sq/src/commands/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/sq/src/commands/mod.rs b/sq/src/commands/mod.rs
index f7f47787..83a02237 100644
--- a/sq/src/commands/mod.rs
+++ b/sq/src/commands/mod.rs
@@ -374,8 +374,8 @@ impl<'a> VerificationHelper for VHelper<'a> {
pub fn verify(ctx: &Context, policy: &dyn Policy,
mapping: &mut store::Mapping,
- input: &mut dyn io::Read,
- detached: Option<&mut dyn io::Read>,
+ input: &mut (dyn io::Read + Sync + Send),
+ detached: Option<&mut (dyn io::Read + Sync + Send)>,
output: &mut dyn io::Write,
signatures: usize, certs: Vec<Cert>)
-> Result<()> {
@@ -396,7 +396,7 @@ pub fn verify(ctx: &Context, policy: &dyn Policy,
Ok(())
}
-pub fn split(input: &mut dyn io::Read, prefix: &str)
+pub fn split(input: &mut (dyn io::Read + Sync + Send), prefix: &str)
-> Result<()> {
// We (ab)use the mapping feature to create byte-accurate dumps of
// nested packets.