(entry: &atomic_repository::status::FileStatusEntry)
| 620 | |
| 621 | impl From<&atomic_repository::status::FileStatusEntry> for JsonStatusEntry { |
| 622 | fn from(entry: &atomic_repository::status::FileStatusEntry) -> Self { |
| 623 | Self { |
| 624 | path: json_path(entry.path()), |
| 625 | status: json_status_name(entry.status()), |
| 626 | code: entry.status().short_code().to_string(), |
| 627 | details: entry.details().map(str::to_string), |
| 628 | } |
| 629 | } |
| 630 | } |
| 631 | |
| 632 | fn json_path(path: &std::path::Path) -> String { |
nothing calls this directly
no test coverage detected