silence spurious warning: 'ReaderType' is declared but not used

This commit is contained in:
jangko 2021-09-18 15:05:10 +07:00
parent cd044da00f
commit ea965bbe00
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ template isCharArray(v: auto): bool = false
proc readValue*[T](r: var JsonReader, value: var T)
{.raises: [UnexpectedValueError, SerializationError, IOError, Defect].} =
mixin readValue
type ReaderType = type r
type ReaderType {.used.} = type r
let tok {.used.} = r.lexer.tok