make tests green again
This commit is contained in:
parent
ddaf2e3805
commit
f12a5431a1
3 changed files with 3 additions and 5 deletions
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue