all: use reflect.TypeFor now available in Go 1.22 (#11078)
Updates #cleanup Signed-off-by: Joe Tsai <joetsai@digital-static.net>
This commit is contained in:
@@ -823,7 +823,7 @@ func TestHashMapAcyclic(t *testing.T) {
|
||||
|
||||
hb := &hashBuffer{Hash: sha256.New()}
|
||||
|
||||
hash := lookupTypeHasher(reflect.TypeOf(m))
|
||||
hash := lookupTypeHasher(reflect.TypeFor[map[int]string]())
|
||||
for i := 0; i < 20; i++ {
|
||||
va := reflect.ValueOf(&m).Elem()
|
||||
hb.Reset()
|
||||
|
||||
Reference in New Issue
Block a user