Skip to content

Commit

Permalink
fix: MultiUnmarshaler.List method prealloc
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed May 30, 2024
1 parent 8b5120a commit 7a03fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unmarshaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type MultiUnmarshaler[H header.Header[H]] struct {
}

func (d MultiUnmarshaler[H]) List() []ProofType {
types := make([]ProofType, len(d.Unmarshalers))
types := make([]ProofType, 0, len(d.Unmarshalers))
for tp := range d.Unmarshalers {
types = append(types, tp)
}
Expand Down

0 comments on commit 7a03fc2

Please sign in to comment.