Skip to content

Commit 6135056

Browse files
author
Yuki Ito
committed
Fix dialyzer
1 parent 40da10c commit 6135056

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

include/msgpack.hrl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
jsx | jiffy |
4747
{allow_atom, none|pack} |
4848
{enable_str, boolean()} |
49-
{ext, {msgpack_ext_packer(),msgpack_ext_unpacker()}}
49+
{ext, {msgpack_ext_packer(),msgpack_ext_unpacker()} | module()}
5050
].
5151

5252
-record(options_v1, {
@@ -63,8 +63,8 @@
6363
impl = erlang :: erlang | nif,
6464
allow_atom = none :: none | pack, %% allows atom when packing
6565
enable_str = false :: boolean(), %% true for new spec
66-
ext_packer = undefined :: undefined | msgpack_ext_packer(),
67-
ext_unpacker = undefined :: msgpack_ext_unpacker(),
66+
ext_packer = undefined :: msgpack_ext_packer() | undefined,
67+
ext_unpacker = undefined :: msgpack_ext_unpacker() | undefined,
6868
original_list = [] :: msgpack_list_options()
6969
}).
7070

src/msgpack_packer.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ pack_string(String, _Opt) ->
195195
end
196196
end.
197197

198-
-spec pack_array([msgpack:object()], list()) -> binary() | no_return().
198+
-spec pack_array([msgpack:object()], msgpack_option()) -> binary() | no_return().
199199
pack_array([], _) ->
200200
<< 2#1001:4, 0:4/integer-unit:1 >>;
201201

0 commit comments

Comments
 (0)