summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-08-17 10:11:21 +0200
committerLinus Färnstrand <linus@mullvad.net>2017-08-17 10:11:21 +0200
commitd49fb3baa06f482f3e839de7a1cda989b884e8f2 (patch)
treef27abdcc0b1296104d7f1f182025c691e13669ae
parentca6d66bc34888e2ad151e14024efa7833f5cabf9 (diff)
parente77b7321fa99c5a6eca741443eee7df086afbf77 (diff)
downloadmullvadvpn-d49fb3baa06f482f3e839de7a1cda989b884e8f2.tar.xz
mullvadvpn-d49fb3baa06f482f3e839de7a1cda989b884e8f2.zip
Merge branch 'copy-endpoint'
-rw-r--r--talpid-core/src/net.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/talpid-core/src/net.rs b/talpid-core/src/net.rs
index 116e3f2441..ba8a3fe665 100644
--- a/talpid-core/src/net.rs
+++ b/talpid-core/src/net.rs
@@ -1,7 +1,7 @@
use std::net::{IpAddr, SocketAddr};
/// Represents a network layer IP address together with the transport layer protocol and port.
-#[derive(Debug, Clone, PartialEq, Eq, Hash)]
+#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct Endpoint {
/// The address part of this endpoint, contains the IP and port.
pub address: SocketAddr,