(entry: &atomic_repository::status::FileStatusEntry)
| 1267 | |
| 1268 | impl From<&atomic_repository::status::FileStatusEntry> for JsonStatusEntry { |
| 1269 | fn from(entry: &atomic_repository::status::FileStatusEntry) -> Self { |
| 1270 | Self { |
| 1271 | path: json_path(entry.path()), |
| 1272 | status: json_status_name(entry.status()), |
| 1273 | code: entry.status().short_code().to_string(), |
| 1274 | details: entry.details().map(str::to_string), |
| 1275 | } |
| 1276 | } |
| 1277 | } |
| 1278 | |
| 1279 | fn json_path(path: &std::path::Path) -> String { |
nothing calls this directly
no test coverage detected