Skip to content

Commit 240eb7a

Browse files
committed
chore: clippy
1 parent bd2a0c6 commit 240eb7a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

iroh-net/src/conn_manager.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ impl From<quinn::ReadToEndError> for InitError {
348348
fn from(value: quinn::ReadToEndError) -> Self {
349349
match value {
350350
quinn::ReadToEndError::Read(quinn::ReadError::ConnectionLost(err)) => err.into(),
351-
err @ _ => Self::Other(err.into()),
351+
err => Self::Other(err.into()),
352352
}
353353
}
354354
}
@@ -357,7 +357,7 @@ impl From<quinn::WriteError> for InitError {
357357
fn from(value: quinn::WriteError) -> Self {
358358
match value {
359359
quinn::WriteError::ConnectionLost(err) => err.into(),
360-
err @ _ => Self::Other(err.into()),
360+
err => Self::Other(err.into()),
361361
}
362362
}
363363
}
@@ -411,6 +411,9 @@ mod tests {
411411
tasks.spawn(accept_loop(ep2, accept2));
412412

413413
for i in 0u8..20 {
414+
assert!(conn_manager1.get(&n2).is_nome());
415+
assert!(conn_manager2.get(&n1).is_nome());
416+
414417
tracing::info!(i, "start dial");
415418
conn_manager1.dial(n2);
416419
conn_manager2.dial(n1);

0 commit comments

Comments
 (0)