diff --git a/src/encoders/binary.rs b/src/encoders/binary.rs index 2849dce..2582846 100644 --- a/src/encoders/binary.rs +++ b/src/encoders/binary.rs @@ -170,9 +170,9 @@ where outputs.to_bytes(writer)?; } - Type::Record(RecordType { fields }) => { + Type::Record(record_type) => { TypeKind::Record.to_bytes(writer)?; - fields.to_bytes(writer)?; + record_type.to_bytes(writer)?; } }