mirror of https://github.com/status-im/NimYAML.git
make nimyaml works with stricteffects
This commit is contained in:
parent
3e2f92c753
commit
7dd8e88639
|
@ -245,7 +245,7 @@ proc loadMultiDom*(s: Stream | string): seq[YamlDocument]
|
||||||
else: internalError("Unexpected exception: " & ex.parent.repr)
|
else: internalError("Unexpected exception: " & ex.parent.repr)
|
||||||
|
|
||||||
proc representChild*(value: YamlNodeObj, ts: TagStyle,
|
proc representChild*(value: YamlNodeObj, ts: TagStyle,
|
||||||
c: SerializationContext) =
|
c: SerializationContext) {.raises: [YamlSerializationError].} =
|
||||||
let childTagStyle = if ts == tsRootOnly: tsNone else: ts
|
let childTagStyle = if ts == tsRootOnly: tsNone else: ts
|
||||||
case value.kind
|
case value.kind
|
||||||
of yScalar:
|
of yScalar:
|
||||||
|
|
Loading…
Reference in New Issue