Handle updates in nim-stew

This commit is contained in:
Zahary Karadjov 2020-07-08 00:31:20 +03:00
parent e0e51015b7
commit 5b11c41731
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ template enumAllSerializedFields*(T: type, body): untyped =
enumAllSerializedFieldsImpl(T, body) enumAllSerializedFieldsImpl(T, body)
func isCaseObject*(T: type): bool {.compileTime.} = func isCaseObject*(T: type): bool {.compileTime.} =
genExpr: genSimpleExpr:
enumAllSerializedFields(T): enumAllSerializedFields(T):
if fieldCaseDiscriminator != "": if fieldCaseDiscriminator != "":
return newLit(true) return newLit(true)

View File

@ -1,6 +1,6 @@
import import
typetraits, unittest, typetraits, unittest,
stew/shims/macros, stew/shims/macros, stew/objects,
../serialization/object_serialization, ../serialization/object_serialization,
../serialization/testing/generic_suite ../serialization/testing/generic_suite