From a83befa0d111a0ba6fac52d763e93c76a2ef94d4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 19 Dec 2025 12:52:30 +0100 Subject: all: use any instead of interface{} Any is the preferred over interface{} now in Go. --- pkg/bisect/minimize/slice.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/bisect/minimize/slice.go') diff --git a/pkg/bisect/minimize/slice.go b/pkg/bisect/minimize/slice.go index d5fbc6c6a..949174ad4 100644 --- a/pkg/bisect/minimize/slice.go +++ b/pkg/bisect/minimize/slice.go @@ -24,7 +24,7 @@ type Config[T any] struct { // anongside the intermediate bisection result (a valid, but not fully minimized slice). MaxChunks int // Logf is used for sharing debugging output. - Logf func(string, ...interface{}) + Logf func(string, ...any) } // Slice() finds a minimal subsequence of slice elements that still gives Pred() == true. @@ -33,7 +33,7 @@ type Config[T any] struct { // The expected number of Pred() runs is O(|result|*log2(|elements|)). func Slice[T any](config Config[T], slice []T) ([]T, error) { if config.Logf == nil { - config.Logf = func(string, ...interface{}) {} + config.Logf = func(string, ...any) {} } ctx := &sliceCtx[T]{ Config: config, -- cgit mrf-deployment