From afae13adac25b6fa98bacf4b9f38458dc64317b0 Mon Sep 17 00:00:00 2001 From: jangko Date: Fri, 16 Feb 2024 08:05:48 +0700 Subject: [PATCH] Silence the infamous Conversion from itself warnings --- serialization/object_serialization.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/serialization/object_serialization.nim b/serialization/object_serialization.nim index acdf5a8..336b905 100644 --- a/serialization/object_serialization.nim +++ b/serialization/object_serialization.nim @@ -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: