From 6417b7656bcca70153ab9b9d91c71eae9d860ef2 Mon Sep 17 00:00:00 2001 From: jangko Date: Fri, 29 Dec 2023 12:34:39 +0700 Subject: [PATCH] Reduce declared but not used warning --- json_serialization/writer.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/json_serialization/writer.nim b/json_serialization/writer.nim index 1eda905..a72d4e6 100644 --- a/json_serialization/writer.nim +++ b/json_serialization/writer.nim @@ -180,6 +180,8 @@ proc writeRecordValue*(w: var JsonWriter, value: auto) when fieldType isnot JsonVoid: if writeObjectField(w, value, fieldName, fieldType): w.state = AfterField + else: + discard fieldName w.endRecord() proc writeNumber*[F,T](w: var JsonWriter[F], value: JsonNumber[T]) =