Skip to content

Commit

Permalink
Silence the infamous Conversion from itself warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko committed Feb 16, 2024
1 parent e84cfd7 commit afae13a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions serialization/object_serialization.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit afae13a

Please sign in to comment.