From bc2d73b2d6d8458ca303075fca35ad8c18491168 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)