mirror of
https://github.com/status-im/nim-serialization.git
synced 2025-01-12 21:05:21 +00:00
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…
x
Reference in New Issue
Block a user