Fixes pesky hint in asyncfutures.

This commit is contained in:
Dominik Picheta
2016-10-01 00:02:27 +02:00
parent b16a678a0b
commit c24d6fe17e

View File

@@ -166,7 +166,9 @@ proc read*[T](future: Future[T] | FutureVar[T]): T =
## this function will fail with a ``ValueError`` exception.
##
## If the result of the future is an error then that error will be raised.
{.push hint[ConvFromXtoItselfNotNeeded]: off.}
let fut = Future[T](future)
{.pop.}
if fut.finished:
if fut.error != nil:
injectStacktrace(fut)