The binding payload's reviewed loss facts (review CB-9C R7): the view's explicit EmptyDirectory projection losses, mapped to the binding codec's typed note.
(
repo: &atomic_repository::Repository,
view_name: &str,
)
| 482 | /// explicit EmptyDirectory projection losses, mapped to the binding codec's |
| 483 | /// typed note. |
| 484 | fn binding_loss_notes( |
| 485 | repo: &atomic_repository::Repository, |
| 486 | view_name: &str, |
| 487 | ) -> CliResult<Vec<LossNote>> { |
| 488 | let notes = repo.empty_directory_loss_notes(view_name)?; |
| 489 | Ok(notes |
| 490 | .into_iter() |
| 491 | .map(|note| match note { |
| 492 | atomic_repository::record::LossNote::EmptyDirectory { path } => { |
| 493 | LossNote::EmptyDirectory { path } |
| 494 | } |
| 495 | other => LossNote::Other { |
| 496 | description: format!("{other:?}"), |
| 497 | }, |
| 498 | }) |
| 499 | .collect()) |
| 500 | } |
| 501 | |
| 502 | fn sole_working_copy_operation( |
| 503 | repo: &atomic_repository::Repository, |
no test coverage detected