(mod_list: &str)
| 309 | description: None, |
| 310 | homepage_url: None, |
| 311 | download_url: None, |
| 312 | }); |
| 313 | } |
| 314 | } |
| 315 | |
| 316 | Ok(resolved) |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | fn split_server_mods(mod_list: &str) -> Vec<String> { |
| 321 | let mut mod_ids = Vec::new(); |
| 322 | for mod_id in mod_list |
| 323 | .split(|ch: char| ch == ',' || ch == ';' || ch == '|' || ch.is_whitespace()) |
| 324 | .map(str::trim) |
| 325 | .filter(|mod_id| !mod_id.is_empty()) |
| 326 | { |
| 327 | if !mod_ids.iter().any(|existing| existing == mod_id) { |
no test coverage detected