Skip to content

proto3 doesn't pack repeated fields by default #976

@daniel-sherwood

Description

@daniel-sherwood

The code here

.map_or(self.syntax == Syntax::Proto3, |options| options.packed())
attempts to set the default behaviour for proto3 to be packed, however because options.packed() returns false unless [packed = true] is set on the field, this fails.

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