From f70e519f0a32679b989f8e918505df86ff75eb4d Mon Sep 17 00:00:00 2001 From: "Franz Heinzmann (Frando)" Date: Thu, 23 May 2024 01:30:59 +0200 Subject: [PATCH] chore: clippy --- iroh-net/src/conn_manager.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iroh-net/src/conn_manager.rs b/iroh-net/src/conn_manager.rs index 04a240cfef..418b3ab133 100644 --- a/iroh-net/src/conn_manager.rs +++ b/iroh-net/src/conn_manager.rs @@ -348,7 +348,7 @@ impl From for InitError { fn from(value: quinn::ReadToEndError) -> Self { match value { quinn::ReadToEndError::Read(quinn::ReadError::ConnectionLost(err)) => err.into(), - err @ _ => Self::Other(err.into()), + err => Self::Other(err.into()), } } } @@ -357,7 +357,7 @@ impl From for InitError { fn from(value: quinn::WriteError) -> Self { match value { quinn::WriteError::ConnectionLost(err) => err.into(), - err @ _ => Self::Other(err.into()), + err => Self::Other(err.into()), } } } @@ -411,6 +411,9 @@ mod tests { tasks.spawn(accept_loop(ep2, accept2)); for i in 0u8..20 { + assert!(conn_manager1.get(&n2).is_none()); + assert!(conn_manager2.get(&n1).is_none()); + tracing::info!(i, "start dial"); conn_manager1.dial(n2); conn_manager2.dial(n1);