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/io | |
parent | 22f127b1124608dc7bcc13165e382bfbaa803764 (diff) | |
download | chawan-10a02b2ae2613b383453ba99318330560e9371ac.tar.gz |
Use std/* imports everywhere
Diffstat (limited to 'src/io')
-rw-r--r-- | src/io/multistream.nim | 2 | ||||
-rw-r--r-- | src/io/posixstream.nim | 4 | ||||
-rw-r--r-- | src/io/promise.nim | 2 | ||||
-rw-r--r-- | src/io/serialize.nim | 8 | ||||
-rw-r--r-- | src/io/serversocket.nim | 3 | ||||
-rw-r--r-- | src/io/socketstream.nim | 10 | ||||
-rw-r--r-- | src/io/teestream.nim | 2 | ||||
-rw-r--r-- | src/io/urlfilter.nim | 2 |
8 files changed, 17 insertions, 16 deletions
diff --git a/src/io/multistream.nim b/src/io/multistream.nim index 33038ad6..cf6814ab 100644 --- a/src/io/multistream.nim +++ b/src/io/multistream.nim @@ -2,7 +2,7 @@ # stream. # See TeeStream for a pull version. -import streams +import std/streams type MultiStream = ref object of Stream s1: Stream diff --git a/src/io/posixstream.nim b/src/io/posixstream.nim index 5e9082a9..dbc48ece 100644 --- a/src/io/posixstream.nim +++ b/src/io/posixstream.nim @@ -1,6 +1,6 @@ # stdlib file handling is broken, so we use this instead of FileStream. -import posix -import streams +import std/posix +import std/streams type PosixStream* = ref object of Stream diff --git a/src/io/promise.nim b/src/io/promise.nim index 549b878e..c7942190 100644 --- a/src/io/promise.nim +++ b/src/io/promise.nim @@ -1,4 +1,4 @@ -import tables +import std/tables import types/opt diff --git a/src/io/serialize.nim b/src/io/serialize.nim index 244dc201..0c9cfd8e 100644 --- a/src/io/serialize.nim +++ b/src/io/serialize.nim @@ -1,9 +1,9 @@ # Write data to streams. -import options -import sets -import streams -import tables +import std/options +import std/sets +import std/streams +import std/tables import loader/request import types/blob diff --git a/src/io/serversocket.nim b/src/io/serversocket.nim index c83af974..e8bbf549 100644 --- a/src/io/serversocket.nim +++ b/src/io/serversocket.nim @@ -1,8 +1,9 @@ import std/nativesockets import std/net import std/os + when defined(posix): - import posix + import std/posix type ServerSocket* = object sock*: Socket diff --git a/src/io/socketstream.nim b/src/io/socketstream.nim index 7fe7e831..31e4a3b7 100644 --- a/src/io/socketstream.nim +++ b/src/io/socketstream.nim @@ -1,10 +1,10 @@ -import nativesockets -import net -import os -import streams +import std/nativesockets +import std/net +import std/os +import std/streams when defined(posix): - import posix + import std/posix import io/posixstream import io/serversocket diff --git a/src/io/teestream.nim b/src/io/teestream.nim index a8f5792e..f70d8c4f 100644 --- a/src/io/teestream.nim +++ b/src/io/teestream.nim @@ -1,7 +1,7 @@ # TeeStream: write to another stream when reading from one stream. # See MultiStream for a push version. -import streams +import std/streams type TeeStream = ref object of Stream source: Stream diff --git a/src/io/urlfilter.nim b/src/io/urlfilter.nim index c0832b17..457d79f8 100644 --- a/src/io/urlfilter.nim +++ b/src/io/urlfilter.nim @@ -1,4 +1,4 @@ -import options +import std/options import js/regex import types/url |