We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b2dba7 commit 5e3a213Copy full SHA for 5e3a213
lib/msgpax/unpacker.ex
@@ -133,7 +133,7 @@ defmodule Msgpax.Unpacker do
133
options = Macro.var(:options, nil)
134
outer = Macro.var(:outer, nil)
135
defp unpack_collection(<<unquote_splicing(format), rest::bits>>, result, options, outer, index, length, kind) when index < length do
136
- outer = [kind, index, length | outer]
+ outer = [{kind, index, length} | outer]
137
unquote(pipe(rest, pipe(result, pipe(options, pipe(outer, call, 0), 0), 0), 0))
138
end
139
@@ -167,7 +167,7 @@ defmodule Msgpax.Unpacker do
167
Msgpax.Ext.new(type, data)
168
169
170
- defp unpack_continue(<<buffer::bits>>, result, options, [kind, index, length | outer]) do
+ defp unpack_continue(<<buffer::bits>>, result, options, [{kind, index, length} | outer]) do
171
unpack_collection(buffer, result, options, outer, index + 1, length, kind)
172
173
0 commit comments