make it more Nim 1.4+ compatible (#742)

This commit is contained in:
Miran
2022-08-03 13:33:19 +02:00
committed by GitHub
parent 20c02a5f23
commit 2fbe82bf9d
81 changed files with 329 additions and 88 deletions

View File

@@ -7,7 +7,10 @@
# This file may not be copied, modified, or distributed except according to
# those terms.
{.push raises: [Defect].}
when (NimMajor, NimMinor) < (1, 4):
{.push raises: [Defect].}
else:
{.push raises: [].}
import std/[sequtils, sets, hashes, tables]
import chronos, chronicles, metrics