Skip to content

Commit

Permalink
Handle changes in the serialization library
Browse files Browse the repository at this point in the history
  • Loading branch information
zah committed Mar 19, 2021
1 parent cfa9566 commit f091a70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions confutils/envvar/envvar_serialization.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions confutils/winreg/winreg_serialization.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f091a70

Please sign in to comment.