Skip to content

This error condition should use ParseError::BufferTooShort instead of ParseError::More. The ParseError::More variant expects different parameters and semantics for incomplete data scenarios. #28

@qzhuyan

Description

@qzhuyan

This error condition should use ParseError::BufferTooShort instead of ParseError::More. The ParseError::More variant expects different parameters and semantics for incomplete data scenarios.

            return Err(ParseError::BufferTooShort(
                vsn_offset + 1 - self.buffer.len(),
            ));
        }
        }

Originally posted by @Copilot in #26 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions