(&mut self, state: &RepoStateRef)
| 463 | } |
| 464 | |
| 465 | fn put_repo_state(&mut self, state: &RepoStateRef) -> Result<(), OperationCodecError> { |
| 466 | self.put_optional_tag(state.view.is_some())?; |
| 467 | if let Some(view) = &state.view { |
| 468 | self.put_view_state(view)?; |
| 469 | } |
| 470 | self.put_optional_tag(state.working_copy.is_some())?; |
| 471 | if let Some(working_copy) = &state.working_copy { |
| 472 | self.put_working_copy_state(working_copy)?; |
| 473 | } |
| 474 | self.put_optional_tag(state.git.is_some())?; |
| 475 | if let Some(git) = &state.git { |
| 476 | self.put_git_state(git)?; |
| 477 | } |
| 478 | Ok(()) |
| 479 | } |
| 480 | |
| 481 | fn put_repo_state_delta( |
| 482 | &mut self, |
no test coverage detected