Skip to content

Binary_sv2: Length of fixed type is always 1 #2173

Description

@Shourya742
    pub fn len(&self) -> usize {
        match (self, ISFIXED) {
            (Inner::Ref(data), false) => data.len(),
            (Inner::Owned(data), false) => data.len(),
            (_, true) => 1,
        }
    }

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Ready For Review 🔍
Status
Ready For Review 🔍

Relationships

None yet

Development

No branches or pull requests

Issue actions