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:
|
for i in v:
|
||||||
s.incl i
|
s.incl i
|
||||||
|
|
||||||
proc contains*(j: JsonNode, elem: JsonNode): bool =
|
when not declared(json.contains):
|
||||||
for i in j:
|
proc contains*(j: JsonNode, elem: JsonNode): bool =
|
||||||
if i == elem:
|
for i in j:
|
||||||
return true
|
if i == elem:
|
||||||
|
return true
|
||||||
|
|
||||||
proc contains*(j: JsonNode, elem: tuple[key: string, val: JsonNode]): bool =
|
proc contains*(j: JsonNode, elem: tuple[key: string, val: JsonNode]): bool =
|
||||||
for key, val in pairs(j):
|
for key, val in pairs(j):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue