diff options
author | bptato <nincsnevem662@gmail.com> | 2024-01-07 17:39:33 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-01-07 17:39:33 +0100 |
commit | 10a02b2ae2613b383453ba99318330560e9371ac (patch) | |
tree | c14e3e5e477d257aa7141483c09a52568e5a9458 /src/utils | |
parent | 22f127b1124608dc7bcc13165e382bfbaa803764 (diff) | |
download | chawan-10a02b2ae2613b383453ba99318330560e9371ac.tar.gz |
Use std/* imports everywhere
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/map.nim | 2 | ||||
-rw-r--r-- | src/utils/mimeguess.nim | 6 | ||||
-rw-r--r-- | src/utils/twtstr.nim | 22 |
3 files changed, 15 insertions, 15 deletions
diff --git a/src/utils/map.nim b/src/utils/map.nim index 620dec58..e4681c51 100644 --- a/src/utils/map.nim +++ b/src/utils/map.nim @@ -1,4 +1,4 @@ -import algorithm +import std/algorithm func searchInMap*[U, T](a: openArray[(U, T)], u: U): int = when not (typeof(u) is U): diff --git a/src/utils/mimeguess.nim b/src/utils/mimeguess.nim index 7477c399..0a65c909 100644 --- a/src/utils/mimeguess.nim +++ b/src/utils/mimeguess.nim @@ -1,6 +1,6 @@ -import algorithm -import streams -import tables +import std/algorithm +import std/streams +import std/tables import config/mimetypes diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim index 0168ad63..d7e5a5ba 100644 --- a/src/utils/twtstr.nim +++ b/src/utils/twtstr.nim @@ -1,11 +1,14 @@ -import algorithm -import json -import math -import options -import os -import strutils -import tables -import unicode +import std/algorithm +import std/json +import std/math +import std/options +import std/os +import std/strutils +import std/tables +import std/unicode + +when defined(posix): + import std/posix import types/opt import utils/charcategory @@ -13,9 +16,6 @@ import utils/map export charcategory -when defined(posix): - import posix - func onlyWhitespace*(s: string): bool = for c in s: if c notin AsciiWhitespace: |