Skip to content

Commit 29c8018

Browse files
committed
Fix msgpack4collection
1 parent 9299f64 commit 29c8018

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/msgpack4nim/msgpack4collection.nim

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import sequtils, math, ../msgpack4nim
22
import tables, intsets, lists, deques, sets, strtabs, critbits, streams
3-
import typetraits
43

54
{.push gcsafe.}
65

@@ -27,15 +26,15 @@ proc pack_type*[Stream, T](s: Stream, val: DoublyLinkedRing[T]) =
2726

2827
proc pack_type*[Stream, T](s: Stream, val: Deque[T]) =
2928
s.pack_array(val.len)
30-
for i in items(val): s.pack_type distinctBase(i)
29+
for i in items(val): s.pack_type undistinct_pack(i)
3130

3231
proc pack_type*[Stream, T](s: Stream, val: HashSet[T]) =
3332
s.pack_array(val.len)
34-
for i in items(val): s.pack_type distinctBase(i)
33+
for i in items(val): s.pack_type undistinct_pack(i)
3534

3635
proc pack_type*[Stream, T](s: Stream, val: OrderedSet[T]) =
3736
s.pack_array(val.len)
38-
for i in items(val): s.pack_type distinctBase(i)
37+
for i in items(val): s.pack_type undistinct_pack(i)
3938

4039
proc pack_type*[Stream, K,V](s: Stream, val: Table[K,V]) =
4140
s.pack_map_imp(val)

0 commit comments

Comments
 (0)