(host: &str)
| 323 | } |
| 324 | |
| 325 | fn normalize_host(host: &str) -> Option<String> { |
| 326 | let host = host.trim().trim_end_matches('.').to_ascii_lowercase(); |
| 327 | (!host.is_empty()).then_some(host) |
| 328 | } |
| 329 | |
| 330 | #[cfg(test)] |
| 331 | mod tests { |
no test coverage detected