Browse Source

fix slice copy in 1.20 (#13389)

The slices package is added to the standard library in Go 1.21;
we need to import from the exp area to maintain compatibility with Go 1.20.

Signed-off-by: tyltr <tylitianrui@126.com>
pull/13408/head
tyltr 10 months ago committed by GitHub
parent
commit
1fa131ee03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      model/histogram/generic_test.go

2
model/histogram/generic_test.go

@ -15,10 +15,10 @@ package histogram
import (
"math"
"slices"
"testing"
"github.com/stretchr/testify/require"
"golang.org/x/exp/slices"
)
func TestGetBound(t *testing.T) {

Loading…
Cancel
Save