diff --git a/mmdbtype/types.go b/mmdbtype/types.go index ac8fe1c..87c1fbd 100644 --- a/mmdbtype/types.go +++ b/mmdbtype/types.go @@ -9,9 +9,7 @@ import ( "math/big" "math/bits" "reflect" - - // TODO: Once the min Go version is 1.21, switch this to "slices". - "golang.org/x/exp/slices" + "slices" ) type typeNum byte diff --git a/tree_test.go b/tree_test.go index d98d1aa..3fdccf5 100644 --- a/tree_test.go +++ b/tree_test.go @@ -691,7 +691,7 @@ func TestTreeInsertAndGet(t *testing.T) { assert.Equal(t, int64(buf.Len()), numBytes, "number of bytes") - f, err := os.CreateTemp("", "mmdbwriter") + f, err := os.CreateTemp(t.TempDir(), "mmdbwriter") require.NoError(t, err) defer func() { require.NoError(t, os.Remove(f.Name())) }()