(root: &Path, snapshot: &ShimSnapshot)
| 3323 | } |
| 3324 | |
| 3325 | fn write_workspace_metadata(root: &Path, snapshot: &ShimSnapshot) -> CliResult<()> { |
| 3326 | checkpoint::write_verified_checkpoint( |
| 3327 | root, |
| 3328 | VerifiedCheckpointInput { |
| 3329 | view: &snapshot.view, |
| 3330 | atomic_state: &snapshot.atomic_state, |
| 3331 | git_head: &snapshot.git_head, |
| 3332 | git_tree: &snapshot.git_tree, |
| 3333 | }, |
| 3334 | ) |
| 3335 | .map(|_| ()) |
| 3336 | .map_err(checkpoint_error) |
| 3337 | } |
| 3338 | |
| 3339 | fn checkpoint_error(error: checkpoint::CheckpointError) -> CliError { |
| 3340 | git_error(error.to_string()) |
no test coverage detected