Skip to content

Commit

Permalink
Fix dialyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
michalmuskala committed Dec 17, 2021
1 parent 470080a commit 4e2f416
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/decoder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ defmodule Jason.Decoder do

import Codegen, only: [bytecase: 2, bytecase: 3]

@dialyzer :no_improper_lists

# @compile :native

# We use integers instead of atoms to take advantage of the jump table
Expand Down
2 changes: 2 additions & 0 deletions lib/encode.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ defmodule Jason.Encode do
@typep encode_map :: (map, escape, encode_map -> iodata)
@opaque opts :: {escape, encode_map}

@dialyzer :no_improper_lists

# @compile :native

@doc false
Expand Down
2 changes: 2 additions & 0 deletions lib/formatter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ defmodule Jason.Formatter do
import Record
defrecordp :opts, [:indent, :line, :record, :colon]

@dialyzer :no_improper_lists

@doc ~S"""
Pretty-prints JSON-encoded `input`.
Expand Down

0 comments on commit 4e2f416

Please sign in to comment.