Skip to content

Commit

Permalink
Remove comparable limit for Listable
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Dec 5, 2023
1 parent 5077a87 commit aea72dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion option/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (v NetworkList) Build() []string {
return strings.Split(string(v), "\n")
}

type Listable[T comparable] []T
type Listable[T any] []T

func (l Listable[T]) MarshalJSON() ([]byte, error) {
arrayList := []T(l)
Expand Down

0 comments on commit aea72dc

Please sign in to comment.