From 759355b364c2448ba3c7135034cc9c3854e7d366 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Wed, 25 Sep 2019 13:33:50 -0600 Subject: [PATCH] use discard for unused results --- examples/directchat.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/directchat.nim b/examples/directchat.nim index eddc2a4..ea651ea 100644 --- a/examples/directchat.nim +++ b/examples/directchat.nim @@ -159,7 +159,7 @@ proc threadMain(wfd: AsyncFD) {.thread.} = while true: var line = stdin.readLine() - let res = waitFor transp.write(line & "\r\n") + discard waitFor transp.write(line & "\r\n") proc serveThread(customData: CustomData) {.async.} = var transp = fromPipe(customData.consoleFd)