Fix deprecated reflect.PtrTo calls

This commit is contained in:
Ian Gulliver
2026-04-03 17:01:21 +09:00
parent db6f005bef
commit 9deb4f629c
2 changed files with 2 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ func _getEncoder(typ reflect.Type) encoderFunc {
// Addressable struct field value.
if kind != reflect.Ptr {
ptr := reflect.PtrTo(typ)
ptr := reflect.PointerTo(typ)
if ptr.Implements(customEncoderType) {
return encodeCustomValuePtr
}