diff --git a/talpid-types/src/net/mod.rs b/talpid-types/src/net/mod.rs index cd8d5987a912..de9c5c765d11 100644 --- a/talpid-types/src/net/mod.rs +++ b/talpid-types/src/net/mod.rs @@ -262,7 +262,7 @@ impl Endpoint { } } - pub fn from_socket_address(address: SocketAddr, protocol: TransportProtocol) -> Self { + pub const fn from_socket_address(address: SocketAddr, protocol: TransportProtocol) -> Self { Endpoint { address, protocol } } }