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 /ipc/src | |
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 'ipc/src')
-rw-r--r-- | ipc/src/sexp/parse/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/src/sexp/parse/mod.rs b/ipc/src/sexp/parse/mod.rs index 84a6e2e3..46905fc3 100644 --- a/ipc/src/sexp/parse/mod.rs +++ b/ipc/src/sexp/parse/mod.rs @@ -30,7 +30,7 @@ lalrpop_mod!( ); impl<'a> Parse<'a, Sexp> for Sexp { - fn from_reader<R: 'a + Read>(reader: R) -> Result<Sexp> { + fn from_reader<R: 'a + Read + Send + Sync>(reader: R) -> Result<Sexp> { Self::from_bytes( buffered_reader::Generic::new(reader, None).data_eof()?) } |