(href: &str)
| 24 | } |
| 25 | |
| 26 | fn split_href_impl(href: &str) -> Vec<String> { |
| 27 | let normalized = normalize_href_impl(href); |
| 28 | if normalized == "/" { |
| 29 | return Vec::new(); |
| 30 | } |
| 31 | normalized |
| 32 | .trim_matches('/') |
| 33 | .split('/') |
| 34 | .filter(|part| !part.is_empty()) |
| 35 | .map(str::to_string) |
| 36 | .collect() |
| 37 | } |
| 38 | |
| 39 | fn split_query_args_impl(href: &str) -> Vec<String> { |
| 40 | let Some((_, tail)) = href.split_once('?') else { |
no test coverage detected