Ver Fonte

chore: make clippy

draoi há 1 ano atrás
pai
commit
e55ae297f7
1 ficheiros alterados com 5 adições e 8 exclusões
  1. 5 8
      src/net/session/inbound_session.rs

+ 5 - 8
src/net/session/inbound_session.rs

@@ -184,14 +184,11 @@ impl InboundSession {
             channel_id: channel.info.id,
         });
 
-        match self.register_channel(channel.clone(), ex.clone()).await {
-            Ok(()) => {}
-            Err(e) => {
-                warn!(
-                    target: "net::inbound_session::setup_channel()",
-                    "Channel setup failed! Err={}", e
-                );
-            }
+        if let Err(e) = self.register_channel(channel.clone(), ex.clone()).await {
+            warn!(
+                target: "net::inbound_session::setup_channel()",
+                "Channel setup failed! Err={}", e
+            );
         }
 
         dnetev!(self, InboundDisconnected, {