mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 08:31:30 +00:00
Remove comparable limit for Listable
This commit is contained in:
parent
21283b554a
commit
09421b6378
|
@ -83,7 +83,7 @@ func (v NetworkList) Build() []string {
|
||||||
return strings.Split(string(v), "\n")
|
return strings.Split(string(v), "\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
type Listable[T comparable] []T
|
type Listable[T any] []T
|
||||||
|
|
||||||
func (l Listable[T]) MarshalJSON() ([]byte, error) {
|
func (l Listable[T]) MarshalJSON() ([]byte, error) {
|
||||||
arrayList := []T(l)
|
arrayList := []T(l)
|
||||||
|
|
Loading…
Reference in a new issue