瀏覽代碼

Remove comparable limit for Listable

世界 1 年之前
父節點
當前提交
09421b6378
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      option/types.go

+ 1 - 1
option/types.go

@@ -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)