Silence the infamous Conversion from itself warnings
This commit is contained in:
parent
e84cfd7061
commit
afae13adac
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue