make nimyaml works with stricteffects

This commit is contained in:
xflywind 2022-10-14 22:26:39 +08:00 committed by flyx
parent 3e2f92c753
commit 7dd8e88639
1 changed files with 1 additions and 1 deletions

View File

@ -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: