From d8a4c2c0bafe203c3c07b9ae0b4a4cbc0c0b6cd4 Mon Sep 17 00:00:00 2001 From: Dustin Brody Date: Thu, 9 Jun 2022 09:39:58 +0000 Subject: [PATCH] remove unnecessary string conversion --- json_serialization/reader.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json_serialization/reader.nim b/json_serialization/reader.nim index b71875b..a569e3c 100644 --- a/json_serialization/reader.nim +++ b/json_serialization/reader.nim @@ -593,7 +593,7 @@ proc readValue*[T](r: var JsonReader, value: var T) r.skipSingleJsValue() else: const typeName = typetraits.name(T) - r.raiseUnexpectedField(r.lexer.strVal, string typeName) + r.raiseUnexpectedField(r.lexer.strVal, typeName) if r.lexer.lazyTok == tkComma: r.lexer.next() else: