critbits: fix error from strictFuncs (#16877)

Previously, compiling a file containing just `import critbits` with
`nim c --experimental:strictFuncs` would produce the following error:
    critbits.nim(529, 6) Error: 'toCritBitTree' can have side effects

This was introduced by 2aed418698 (#16564).

Fixes: #16873
This commit is contained in:
ee7 2021-02-01 13:14:23 +01:00 • committed by GitHub
commit 0b01eddace
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -7,6 +7,7 @@ import tables, streams, parsecsv
# They are otherwise unused in this file.
import
complex,
critbits,
httpcore,
math,
nre,