Fix compilation problem introduced by nim-lang/Nim#4357.
This commit is contained in:
parent
f6a19b54e4
commit
e512b02fca
1 changed files with 5 additions and 4 deletions
|
|
@ -106,10 +106,11 @@ proc incl*(s: var HashSet[string], v: seq[string] | HashSet[string]) =
|
|||
for i in v:
|
||||
s.incl i
|
||||
|
||||
proc contains*(j: JsonNode, elem: JsonNode): bool =
|
||||
for i in j:
|
||||
if i == elem:
|
||||
return true
|
||||
when not declared(json.contains):
|
||||
proc contains*(j: JsonNode, elem: JsonNode): bool =
|
||||
for i in j:
|
||||
if i == elem:
|
||||
return true
|
||||
|
||||
proc contains*(j: JsonNode, elem: tuple[key: string, val: JsonNode]): bool =
|
||||
for key, val in pairs(j):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue