(&mut self)
| 1066 | } |
| 1067 | |
| 1068 | fn read_operation_relation(&mut self) -> Result<OperationRelation, OperationCodecError> { |
| 1069 | match self.read_u8()? { |
| 1070 | 0 => Ok(OperationRelation::Undo { |
| 1071 | target: self.read_operation_id()?, |
| 1072 | }), |
| 1073 | 1 => Ok(OperationRelation::Restore { |
| 1074 | target: self.read_operation_id()?, |
| 1075 | }), |
| 1076 | tag => Err(OperationCodecError::new(format!( |
| 1077 | "unsupported operation relation tag {tag}" |
| 1078 | ))), |
| 1079 | } |
| 1080 | } |
| 1081 | |
| 1082 | fn read_repo_state(&mut self) -> Result<RepoStateRef, OperationCodecError> { |
| 1083 | let view = if self.read_optional_tag("view state")? { |
no test coverage detected