File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,13 +67,13 @@ impl Ports {
6767 }
6868
6969 /// Returns the host port for the given internal container's port, on the host's IPv4 interfaces.
70- pub fn map_to_host_port_ipv4 ( & self , container_port : ContainerPort ) -> Option < u16 > {
71- self . ipv4_mapping . get ( & container_port) . cloned ( )
70+ pub fn map_to_host_port_ipv4 ( & self , container_port : impl Into < ContainerPort > ) -> Option < u16 > {
71+ self . ipv4_mapping . get ( & container_port. into ( ) ) . cloned ( )
7272 }
7373
7474 /// Returns the host port for the given internal container's port, on the host's IPv6 interfaces.
75- pub fn map_to_host_port_ipv6 ( & self , container_port : ContainerPort ) -> Option < u16 > {
76- self . ipv6_mapping . get ( & container_port) . cloned ( )
75+ pub fn map_to_host_port_ipv6 ( & self , container_port : impl Into < ContainerPort > ) -> Option < u16 > {
76+ self . ipv6_mapping . get ( & container_port. into ( ) ) . cloned ( )
7777 }
7878}
7979
You can’t perform that action at this time.
0 commit comments