Tables, use sink val arguments more actively (#15625)
This commit is contained in:
parent
d22ab0fb96
commit
04f8fcfbd0
3 changed files with 30 additions and 29 deletions
|
|
@ -27,7 +27,7 @@ proc rawGetDeep[X, A](t: X, key: A, hc: var Hash): int {.inline.} =
|
|||
rawGetDeepImpl()
|
||||
|
||||
proc rawInsert[X, A, B](t: var X, data: var KeyValuePairSeq[A, B],
|
||||
key: A, val: B, hc: Hash, h: Hash) =
|
||||
key: A, val: sink B, hc: Hash, h: Hash) =
|
||||
rawInsertImpl()
|
||||
|
||||
template checkIfInitialized() =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue