From f091a70a5bf95ec772c8b4d9978e81b8ae89af0c Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Fri, 19 Mar 2021 04:01:44 +0200 Subject: [PATCH] Handle changes in the serialization library --- confutils/envvar/envvar_serialization.nim | 8 ++++---- confutils/winreg/winreg_serialization.nim | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/confutils/envvar/envvar_serialization.nim b/confutils/envvar/envvar_serialization.nim index bf03ee0..18f37e0 100644 --- a/confutils/envvar/envvar_serialization.nim +++ b/confutils/envvar/envvar_serialization.nim @@ -5,10 +5,10 @@ import export serialization, reader, writer -serializationFormat Envvar, - Reader = EnvvarReader, - Writer = EnvvarWriter, - PreferedOutput = void +serializationFormat Envvar + +Envvar.setReader EnvvarReader +Envvar.setWriter EnvvarWriter, PreferredOutput = void template supports*(_: type Envvar, T: type): bool = # The Envvar format should support every type diff --git a/confutils/winreg/winreg_serialization.nim b/confutils/winreg/winreg_serialization.nim index 6906f52..762692d 100644 --- a/confutils/winreg/winreg_serialization.nim +++ b/confutils/winreg/winreg_serialization.nim @@ -5,10 +5,10 @@ import export serialization, reader, writer, types -serializationFormat Winreg, - Reader = WinregReader, - Writer = WinregWriter, - PreferedOutput = void +serializationFormat Winreg + +Winreg.setReader WinregReader +Winreg.setWriter WinregWriter, PreferredOutput = void template supports*(_: type Winreg, T: type): bool = # The Winreg format should support every type