From db7f00dd38384f7cc6f412d3b5b39b567d0ba74d Mon Sep 17 00:00:00 2001 From: Philip Craig Date: Sat, 2 Jun 2018 11:13:21 +1000 Subject: [PATCH] Implement Send/Sync for SubRange This is needed to make EndianArcSlice useful. --- src/endian_reader.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/endian_reader.rs b/src/endian_reader.rs index b7e262300..fc08d1540 100644 --- a/src/endian_reader.rs +++ b/src/endian_reader.rs @@ -164,6 +164,18 @@ where len: usize, } +unsafe impl Send for SubRange +where + T: CloneStableDeref + Debug + Send, +{ +} + +unsafe impl Sync for SubRange +where + T: CloneStableDeref + Debug + Sync, +{ +} + impl SubRange where T: CloneStableDeref + Debug,