(root: &Path, normalized: &str)
| 386 | |
| 387 | #[cfg(not(target_arch = "wasm32"))] |
| 388 | fn join_normalized_path(root: &Path, normalized: &str) -> PathBuf { |
| 389 | let mut path = root.to_path_buf(); |
| 390 | for part in normalized.split('/') { |
| 391 | path.push(part); |
| 392 | } |
| 393 | path |
| 394 | } |
| 395 | |
| 396 | fn normalize_relative_path(path: &str, what: &str) -> Result<String, String> { |
| 397 | let trimmed = path.trim(); |
no outgoing calls
no test coverage detected