Fix build with Go 1.25

This commit is contained in:
世界
2025-08-13 21:16:38 +08:00
parent 5eb318ba06
commit 7e190e92ca
4 changed files with 27 additions and 26 deletions

View File

@@ -18,6 +18,7 @@ func newIterator[T any](values []T) *iterator[T] {
return &iterator[T]{values}
}
//go:noinline
func newPtrIterator[T any](values []T) *iterator[*T] {
return &iterator[*T]{common.Map(values, func(value T) *T { return &value })}
}