(&mut self, state: &FileState)
| 832 | } |
| 833 | |
| 834 | fn put_file_state(&mut self, state: &FileState) -> Result<(), OperationCodecError> { |
| 835 | self.put_u8(match state.kind { |
| 836 | FileKind::Regular => 0, |
| 837 | FileKind::Directory => 1, |
| 838 | FileKind::Symlink => 2, |
| 839 | FileKind::Gitlink => 3, |
| 840 | })?; |
| 841 | self.put_u32(state.mode)?; |
| 842 | self.put_hash(state.content) |
| 843 | } |
| 844 | |
| 845 | fn put_receipt_kind(&mut self, kind: EffectReceiptKind) -> Result<(), OperationCodecError> { |
| 846 | self.put_u8(match kind { |
no test coverage detected