Unboxed whatever I coul
This commit is contained in:
@@ -318,10 +318,10 @@ pub async fn io_comm<Req: 'static, Not: 'static>(
|
|||||||
);
|
);
|
||||||
{
|
{
|
||||||
let mut shared = pin!(stream_select!(
|
let mut shared = pin!(stream_select!(
|
||||||
Box::pin(input_stream) as Pin<Box<dyn Stream<Item = Event>>>,
|
pin!(input_stream) as Pin<&mut dyn Stream<Item = Event>>,
|
||||||
Box::pin(onsub.map(Event::Sub)) as Pin<Box<dyn Stream<Item = Event>>>,
|
onsub.map(Event::Sub),
|
||||||
Box::pin(fork_stream.as_mut()) as Pin<Box<dyn Stream<Item = Event>>>,
|
fork_stream.as_mut(),
|
||||||
Box::pin(onexit.map(|()| Event::Exit)) as Pin<Box<dyn Stream<Item = Event>>>,
|
onexit.map(|()| Event::Exit),
|
||||||
));
|
));
|
||||||
let mut pending_replies = HashMap::new();
|
let mut pending_replies = HashMap::new();
|
||||||
while let Some(next) = shared.next().await {
|
while let Some(next) = shared.next().await {
|
||||||
|
|||||||
Reference in New Issue
Block a user