diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-02-17 10:30:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-17 19:30:09 +0100 |
commit | 31bb67a309ae4bfdc1909c0a7c6748a534a0b00e (patch) | |
tree | 8169cc14488a083ffb2d1e8373042bdc0c0c0e73 /lib/std | |
parent | 35e14998ec97deb4efdbec9390b607c876a7a17f (diff) | |
download | Nim-31bb67a309ae4bfdc1909c0a7c6748a534a0b00e.tar.gz |
add -d:nimStrictMode in CI to keep code from regressing; fixes ConvFromXtoItselfNotNeeded, UnusedImport notes (#16764)
Diffstat (limited to 'lib/std')
-rw-r--r-- | lib/std/monotimes.nim | 2 | ||||
-rw-r--r-- | lib/std/private/globs.nim | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/std/monotimes.nim b/lib/std/monotimes.nim index c56bf77b3..f84670ecc 100644 --- a/lib/std/monotimes.nim +++ b/lib/std/monotimes.nim @@ -74,7 +74,7 @@ when defined(js): system.`+`(a, b) {.pop.} -elif defined(posix): +elif defined(posix) and not defined(osx): import posix elif defined(windows): diff --git a/lib/std/private/globs.nim b/lib/std/private/globs.nim index e697ca91c..b98a7808b 100644 --- a/lib/std/private/globs.nim +++ b/lib/std/private/globs.nim @@ -4,7 +4,9 @@ this can eventually be moved to std/os and `walkDirRec` can be implemented in te to avoid duplication ]## -import std/[os,strutils] +import std/[os] +when defined(windows): + from strutils import replace type PathEntry* = object |