From d1ab2c4276e8e4f593bd70d58f8ce75841bed509 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 31 May 2021 22:16:21 +0100 Subject: [PATCH] mgmtchannels: Make ClientMgmtChannel's read be Send too We are about to need this Signed-off-by: Ian Jackson --- src/mgmtchannel.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mgmtchannel.rs b/src/mgmtchannel.rs index 772f0990..582949c6 100644 --- a/src/mgmtchannel.rs +++ b/src/mgmtchannel.rs @@ -47,7 +47,7 @@ impl Debug for MgmtChannel where R: Read, W: Write { } pub type ClientMgmtChannel = MgmtChannel< - Box, + Box, Box, >; @@ -63,7 +63,7 @@ impl ClientMgmtChannel { } pub fn new_boxed(read: R, write: W) -> Self - where R: Read + 'static, + where R: Read + Send + 'static, W: Write + Send + 'static { MgmtChannel::new_raw(Box::new(read), Box::new(write)) } -- 2.30.2