Fixes isNil errors for compatibility with latest Nim.

This commit is contained in:
Dominik Picheta 2018-08-27 17:27:09 +01:00
commit 8134427266
6 changed files with 3 additions and 10 deletions

View file

@ -39,8 +39,6 @@ proc `$`*(ver: Version): string {.borrow.}
proc hash*(ver: Version): Hash {.borrow.}
proc isNil*(ver: Version): bool {.borrow.}
proc newVersion*(ver: string): Version =
doAssert(ver.len == 0 or ver[0] in {'#', '\0'} + Digits,
"Wrong version: " & ver)