diff --git a/io/zenoh-transport/src/unicast/universal/transport.rs b/io/zenoh-transport/src/unicast/universal/transport.rs index 29234aed6..a42a90216 100644 --- a/io/zenoh-transport/src/unicast/universal/transport.rs +++ b/io/zenoh-transport/src/unicast/universal/transport.rs @@ -398,10 +398,7 @@ impl TransportUnicastTrait for TransportUnicastUniversal { /* TX */ /*************************************/ fn schedule(&self, msg: NetworkMessage) -> ZResult<()> { - match self.internal_schedule(msg) { - Ok(_) => Ok(()), - Err(err) => Err(err.into()), - } + self.internal_schedule(msg).map(|_| ()) } fn add_debug_fields<'a, 'b: 'a, 'c>(