Skip to content

Commit

Permalink
Make Endpoint::from_socket_address const
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Dec 12, 2023
1 parent 5356ccf commit 30c40fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion talpid-types/src/net/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
}
Expand Down

0 comments on commit 30c40fe

Please sign in to comment.