diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2019-06-12 14:56:24 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-06-12 15:17:07 +0200 |
| commit | c40985c66514cc7f60e5d2e32d2e0ea3526251c2 (patch) | |
| tree | ca98ae4f2c1346618490280c8cbbbe3326134fbf | |
| parent | 1d3a61b4e2f681b71a12f075c9ca43756b24356f (diff) | |
| download | mullvadvpn-c40985c66514cc7f60e5d2e32d2e0ea3526251c2.tar.xz mullvadvpn-c40985c66514cc7f60e5d2e32d2e0ea3526251c2.zip | |
Remove clone() call on Copy type
| -rw-r--r-- | talpid-core/src/tunnel/wireguard/wireguard_go.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/talpid-core/src/tunnel/wireguard/wireguard_go.rs b/talpid-core/src/tunnel/wireguard/wireguard_go.rs index c86dfccce6..ee5a6f1226 100644 --- a/talpid-core/src/tunnel/wireguard/wireguard_go.rs +++ b/talpid-core/src/tunnel/wireguard/wireguard_go.rs @@ -61,7 +61,7 @@ impl WgGoTunnel { fn create_tunnel_config(config: &Config, routes: impl Iterator<Item = IpNetwork>) -> TunConfig { let mut dns_servers = vec![IpAddr::V4(config.ipv4_gateway)]; - dns_servers.extend(config.ipv6_gateway.clone().map(IpAddr::V6)); + dns_servers.extend(config.ipv6_gateway.map(IpAddr::V6)); TunConfig { addresses: config.tunnel.addresses.clone(), |
