Other cleanup

This commit is contained in:
Tanguy 2022-06-20 14:32:05 +02:00
parent f4ada730b8
commit b4bed3ff52
No known key found for this signature in database
GPG Key ID: 7DD8EC6B6CE6C45E
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import std/options
import std/macros
template questionableUnpack*(expression: Option): untyped =
template questionableUnpack*[T](expression: Option[T]): (T, bool) =
## Used internally
let option = expression

View File

@ -110,7 +110,7 @@ proc option*[T,E](value: Result[T,E]): ?T =
else:
T.none
template questionableUnpack*(expression: Result): untyped =
template questionableUnpack*[T, E](expression: Result[T, E]): (T, bool) =
## Used internally
let res = expression