diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-08-17 09:38:23 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-08-17 09:38:23 +0200 |
| commit | e77b7321fa99c5a6eca741443eee7df086afbf77 (patch) | |
| tree | f27abdcc0b1296104d7f1f182025c691e13669ae | |
| parent | ca6d66bc34888e2ad151e14024efa7833f5cabf9 (diff) | |
| download | mullvadvpn-e77b7321fa99c5a6eca741443eee7df086afbf77.tar.xz mullvadvpn-e77b7321fa99c5a6eca741443eee7df086afbf77.zip | |
Make Endpoint implement Copy
| -rw-r--r-- | talpid-core/src/net.rs | 2 |
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, |
