Skip to content

Commit 20f7ab4

Browse files
committed
chore: clippy
1 parent 58789d7 commit 20f7ab4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

iroh/tests/patchbay/switch-uplink.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl SwitchKind {
5555
/// For cross-family switches (v4-to-v6, v6-to-v4), we verify the new path
5656
/// uses the target address family. For same-family switches, we verify the
5757
/// remote address changed (different NAT, different public IP).
58-
fn path_switched(self, first: &TransportAddr, new: &TransportAddr) -> bool {
58+
fn path_switched(self, first: TransportAddr, new: TransportAddr) -> bool {
5959
match self {
6060
Self::V4ToV6 => matches!(new, TransportAddr::Ip(a) if a.ip().is_ipv6()),
6161
Self::V6ToV4 => matches!(new, TransportAddr::Ip(a) if a.ip().is_ipv4()),
@@ -161,7 +161,7 @@ async fn run_switch_uplink(switching_side: Side, kind: SwitchKind) -> Result {
161161
.context("ping_open before switch")?;
162162
paths
163163
.wait_selected(timeout, |p| {
164-
kind.path_switched(&first.remote_addr(), &p.remote_addr())
164+
kind.path_switched(first.remote_addr(), p.remote_addr())
165165
})
166166
.await
167167
.context("path did not switch")?;

0 commit comments

Comments
 (0)