From 5f1391f39f1adc447874e21c590efcb4921fb822 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Thu, 24 Oct 2019 16:21:31 +0300 Subject: [PATCH] Fix unused imports. --- chronos/handles.nim | 4 ++-- tests/testaddress.nim | 2 +- tests/testasyncstream.nim | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chronos/handles.nim b/chronos/handles.nim index 19716f2..a05c4e3 100644 --- a/chronos/handles.nim +++ b/chronos/handles.nim @@ -7,10 +7,10 @@ # Apache License, version 2.0, (LICENSE-APACHEv2) # MIT license (LICENSE-MIT) -import net, nativesockets, os, asyncloop +import net, nativesockets, asyncloop when defined(windows): - import winlean + import os, winlean const asyncInvalidSocket* = AsyncFD(-1) TCP_NODELAY* = 1 diff --git a/tests/testaddress.nim b/tests/testaddress.nim index 56c9f82..a2a2e36 100644 --- a/tests/testaddress.nim +++ b/tests/testaddress.nim @@ -5,7 +5,7 @@ # Licensed under either of # Apache License, version 2.0, (LICENSE-APACHEv2) # MIT license (LICENSE-MIT) -import strutils, unittest +import unittest import ../chronos when defined(nimHasUsed): {.used.} diff --git a/tests/testasyncstream.nim b/tests/testasyncstream.nim index a5c7a04..54869d1 100644 --- a/tests/testasyncstream.nim +++ b/tests/testasyncstream.nim @@ -5,7 +5,7 @@ # Licensed under either of # Apache License, version 2.0, (LICENSE-APACHEv2) # MIT license (LICENSE-MIT) -import strutils, unittest, os +import strutils, unittest import ../chronos, ../chronos/streams/tlsstream when defined(nimHasUsed): {.used.}