Silence the infamous Conversion from itself warnings

This commit is contained in:
jangko 2024-02-16 08:05:48 +07:00
parent e84cfd7061
commit afae13adac
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 2 additions and 0 deletions

View File

@ -234,7 +234,9 @@ proc makeFieldReadersTable(RecordType, ReaderType: distinct type,
"Case object `" & $typeof(obj) &
"` must have custom `readValue` for `" & $typeof(reader) & "`"
type F = FieldTag[RecordType, realFieldName]
{.push hint[ConvFromXtoItselfNotNeeded]: off.}
field(obj, realFieldName) = readFieldIMPL(F, reader)
{.pop.}
except SerializationError as err:
raise err
except CatchableError as err: