Skip to content

Commit

Permalink
Merge pull request #246 from zenhack/minor-cleanup
Browse files Browse the repository at this point in the history
Get rid of unnecessary interface{ ... }.
  • Loading branch information
lthibault authored May 22, 2022
2 parents 9d310e1 + 9c048e5 commit eddf1ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions list.go
Original file line number Diff line number Diff line change
Expand Up @@ -987,10 +987,10 @@ func (l Float64List) String() string {
}

// A list of some Cap'n Proto enum type T.
type EnumList[T interface{ ~uint16 }] UInt16List
type EnumList[T ~uint16] UInt16List

// NewEnumList creates a new list of T, preferring placement in s.
func NewEnumList[T interface{ ~uint16 }](s *Segment, n int32) (EnumList[T], error) {
func NewEnumList[T ~uint16](s *Segment, n int32) (EnumList[T], error) {
l, err := NewUInt16List(s, n)
return EnumList[T](l), err
}
Expand Down

0 comments on commit eddf1ca

Please sign in to comment.