summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2019-06-12 14:39:56 +0200
committerLinus Färnstrand <linus@mullvad.net>2019-06-12 14:39:56 +0200
commit825216d08ac0beacd8abd450e5d35c62327c8051 (patch)
tree66dfa85c2f135f0802a9f07d9fb32bdf4a75f2d7
parentd4a6e0b411b72f9e14eb6caee6c91dd31b612acf (diff)
downloadmullvadvpn-825216d08ac0beacd8abd450e5d35c62327c8051.tar.xz
mullvadvpn-825216d08ac0beacd8abd450e5d35c62327c8051.zip
Use .. to ignore multiple fields in pattern matching
-rw-r--r--mullvad-types/src/endpoint.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/mullvad-types/src/endpoint.rs b/mullvad-types/src/endpoint.rs
index 4a2371472e..06f8f4f774 100644
--- a/mullvad-types/src/endpoint.rs
+++ b/mullvad-types/src/endpoint.rs
@@ -24,11 +24,7 @@ impl MullvadEndpoint {
pub fn to_endpoint(&self) -> Endpoint {
match self {
MullvadEndpoint::OpenVpn(endpoint) => *endpoint,
- MullvadEndpoint::Wireguard {
- peer,
- ipv4_gateway: _,
- ipv6_gateway: _,
- } => Endpoint::new(
+ MullvadEndpoint::Wireguard { peer, .. } => Endpoint::new(
peer.endpoint.ip(),
peer.endpoint.port(),
TransportProtocol::Udp,