Fix build with Go 1.25

This commit is contained in:
世界 committed 2025-08-13 22:08:35 +08:00
1 parent 5eb318ba06
commit 7e190e92ca
4 files changed
+27 -26

No files matched your search

+1
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 })}
}