(path: &Path)
| 563 | } |
| 564 | |
| 565 | fn read_registry_file(path: &Path) -> InspectorRegistryFile { |
| 566 | let Ok(data) = fs::read_to_string(path) else { |
| 567 | return InspectorRegistryFile::default(); |
| 568 | }; |
| 569 | serde_json::from_str(&data).unwrap_or_default() |
| 570 | } |
| 571 | |
| 572 | fn write_registry_file(path: &Path, registry: &InspectorRegistryFile) -> io::Result<()> { |
| 573 | if let Some(parent) = path.parent() { |
no outgoing calls
no test coverage detected