(endpoint: &NetworkEndpoint)
| 618 | } |
| 619 | |
| 620 | fn canonical_ports(endpoint: &NetworkEndpoint) -> Vec<u32> { |
| 621 | if !endpoint.ports.is_empty() { |
| 622 | endpoint.ports.clone() |
| 623 | } else if endpoint.port > 0 { |
| 624 | vec![endpoint.port] |
| 625 | } else { |
| 626 | vec![] |
| 627 | } |
| 628 | } |
| 629 | |
| 630 | fn find_matching_endpoint_mut<'a>( |
| 631 | endpoints: &'a mut [NetworkEndpoint], |
no test coverage detected