Fixes pesky hint in asyncfutures.
This commit is contained in:
parent
b16a678a0b
commit
c24d6fe17e
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue