From b3752a13b08a18a01f30ea335a1f487f0930f01b Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Sun, 15 May 2022 22:12:24 +1000 Subject: [PATCH] Remove unnecessary mapping to `StreamMuxerBox` Calling `.boxed()` will already map the muxer in a `StreamMuxer` box. This mapping is therefore unnecessary. --- protocols/rendezvous/tests/harness.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/protocols/rendezvous/tests/harness.rs b/protocols/rendezvous/tests/harness.rs index 3602d666c0f..8786d61c2f1 100644 --- a/protocols/rendezvous/tests/harness.rs +++ b/protocols/rendezvous/tests/harness.rs @@ -57,7 +57,6 @@ where MplexConfig::new(), )) .timeout(Duration::from_secs(5)) - .map(|(peer, muxer), _| (peer, StreamMuxerBox::new(muxer))) .boxed(); SwarmBuilder::new(transport, behaviour_fn(peer_id, identity), peer_id)