summaryrefslogtreecommitdiffhomepage
path: root/talpid-wireguard/src
diff options
context:
space:
mode:
authorSebastian Holmin <sebastian.holmin@mullvad.net>2025-07-07 13:50:56 +0200
committerLinus Färnstrand <linus@mullvad.net>2025-07-09 09:51:28 +0200
commitee418601498fb0215ebbb5e87aa786347f5909f0 (patch)
tree8f32b5c1f1cd8b4c2c20af687bd01ff1a20be7af /talpid-wireguard/src
parent95dceb52e8ed232cc395221c76b3a7bdd76187fd (diff)
downloadmullvadvpn-ee418601498fb0215ebbb5e87aa786347f5909f0.tar.xz
mullvadvpn-ee418601498fb0215ebbb5e87aa786347f5909f0.zip
Fix returning the result of a `let` binding
Diffstat (limited to 'talpid-wireguard/src')
-rw-r--r--talpid-wireguard/src/lib.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/talpid-wireguard/src/lib.rs b/talpid-wireguard/src/lib.rs
index 461a18eda4..217399e6be 100644
--- a/talpid-wireguard/src/lib.rs
+++ b/talpid-wireguard/src/lib.rs
@@ -898,7 +898,7 @@ impl WireguardMonitor {
let gateway_routes =
gateway_routes.map(|route| Self::apply_route_mtu_for_multihop(route, config));
- let routes = gateway_routes.chain(
+ gateway_routes.chain(
config
.get_tunnel_destinations()
.filter(|allowed_ip| allowed_ip.prefix() != 0)
@@ -909,9 +909,7 @@ impl WireguardMonitor {
RequiredRoute::new(allowed_ip, node_v6.clone())
}
}),
- );
-
- routes
+ )
}
/// Return any 0.0.0.0/0 routes specified by the allowed IPs.