From 09421b637869649a7b98e0b9b0a7838874a79285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Mon, 4 Dec 2023 15:24:25 +0800 Subject: [PATCH] Remove comparable limit for Listable --- option/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/option/types.go b/option/types.go index 6f0129af..aba445ee 100644 --- a/option/types.go +++ b/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)