mirror of
https://github.com/status-im/nim-serialization.git
synced 2025-01-13 21:34:43 +00:00
silence declared but not used warning
This commit is contained in:
parent
5b11c41731
commit
474bdbf49c
@ -39,7 +39,7 @@ template enumInstanceSerializedFields*(obj: auto,
|
||||
## will be read first and the iteration will continue depending on the
|
||||
## value being deserialized.
|
||||
##
|
||||
type ObjType = type(obj)
|
||||
type ObjType {.used.} = type(obj)
|
||||
|
||||
for fieldName, fieldVar in fieldPairs(obj):
|
||||
when not hasCustomPragmaFixed(ObjType, fieldName, dontSerialize):
|
||||
|
Loading…
x
Reference in New Issue
Block a user