(
file: Option<&Path>,
from: Option<&Path>,
)
| 5448 | } |
| 5449 | |
| 5450 | fn load_profile_import_items( |
| 5451 | file: Option<&Path>, |
| 5452 | from: Option<&Path>, |
| 5453 | ) -> Result<( |
| 5454 | Vec<ProviderProfileImportItem>, |
| 5455 | Vec<ProviderProfileDiagnostic>, |
| 5456 | )> { |
| 5457 | let paths = profile_source_paths(file, from)?; |
| 5458 | let mut items = Vec::new(); |
| 5459 | let mut diagnostics = Vec::new(); |
| 5460 | for path in paths { |
| 5461 | match load_profile_import_item(&path) { |
| 5462 | Ok(item) => items.push(item), |
| 5463 | Err(diagnostic) => diagnostics.push(diagnostic), |
| 5464 | } |
| 5465 | } |
| 5466 | Ok((items, diagnostics)) |
| 5467 | } |
| 5468 | |
| 5469 | fn profile_source_paths(file: Option<&Path>, from: Option<&Path>) -> Result<Vec<PathBuf>> { |
| 5470 | if let Some(file) = file { |
no test coverage detected