Browse Source

chore: make clippy

draoi 1 năm trước cách đây
mục cha
commit
e55ae297f7
1 tập tin đã thay đổi với 5 bổ sung8 xóa
  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, {