Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
deniseli committed Aug 13, 2024
1 parent 75b06ed commit 1594932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/reflect/reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 1594932

Please sign in to comment.