diff --git a/hscontrol/db/text_serialiser.go b/hscontrol/db/text_serialiser.go index 524b2696..1652901f 100644 --- a/hscontrol/db/text_serialiser.go +++ b/hscontrol/db/text_serialiser.go @@ -10,7 +10,7 @@ import ( ) // Got from https://github.com/xdg-go/strum/blob/main/types.go -var textUnmarshalerType = reflect.TypeOf((*encoding.TextUnmarshaler)(nil)).Elem() +var textUnmarshalerType = reflect.TypeFor[encoding.TextUnmarshaler]() func isTextUnmarshaler(rv reflect.Value) bool { return rv.Type().Implements(textUnmarshalerType)