make tests green again

This commit is contained in:
Araq 2018-08-21 20:33:47 +02:00
commit f12a5431a1
3 changed files with 3 additions and 5 deletions

View file

@ -161,10 +161,7 @@ proc peekLast*[T](deq: Deque[T]): T {.inline.} =
result = deq.data[(deq.tail - 1) and deq.mask]
template destroy(x: untyped) =
when defined(nimNewRuntime) and not supportsCopyMem(type(x)):
`=destroy`(x)
else:
reset(x)
reset(x)
proc popFirst*[T](deq: var Deque[T]): T {.inline, discardable.} =
## Remove and returns the first element of the `deq`.