From 1594932c4c94b7b570b9622a830b9625f3f1f001 Mon Sep 17 00:00:00 2001 From: Denise Li Date: Tue, 13 Aug 2024 16:52:39 -0400 Subject: [PATCH] cleanup --- internal/reflect/reflect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/reflect/reflect.go b/internal/reflect/reflect.go index 0a292057d..c0a19776e 100644 --- a/internal/reflect/reflect.go +++ b/internal/reflect/reflect.go @@ -133,7 +133,7 @@ func copyAny(src any, ptrs map[uintptr]any, copyConf *copyConfig) (dst any) { } // Special case list.List to handle its internal structure - if reflect.TypeOf(src) == reflect.TypeOf(&list.List{}) { + if reflect.TypeOf(src) == reflect.TypeFor[*list.List]() { return copyList(src.(*list.List), ptrs, copyConf) }