(
&mut self,
relation: &OperationRelation,
)
| 447 | } |
| 448 | |
| 449 | fn put_operation_relation( |
| 450 | &mut self, |
| 451 | relation: &OperationRelation, |
| 452 | ) -> Result<(), OperationCodecError> { |
| 453 | match relation { |
| 454 | OperationRelation::Undo { target } => { |
| 455 | self.put_u8(0)?; |
| 456 | self.put_operation_id(*target) |
| 457 | } |
| 458 | OperationRelation::Restore { target } => { |
| 459 | self.put_u8(1)?; |
| 460 | self.put_operation_id(*target) |
| 461 | } |
| 462 | } |
| 463 | } |
| 464 | |
| 465 | fn put_repo_state(&mut self, state: &RepoStateRef) -> Result<(), OperationCodecError> { |
| 466 | self.put_optional_tag(state.view.is_some())?; |
no test coverage detected