From f04b997289794a0d7af5bc750f69b041e29e081c Mon Sep 17 00:00:00 2001 From: Joseph Perez Date: Wed, 11 Dec 2024 11:03:38 +0100 Subject: [PATCH] fix: lint --- io/zenoh-transport/src/unicast/universal/transport.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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>(