Skip to content

Commit

Permalink
Removed older implementation for Range
Browse files Browse the repository at this point in the history
  • Loading branch information
Armand committed Aug 8, 2018
1 parent bdff403 commit 5350d33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/poison/encoder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ defimpl Poison.Encoder, for: List do
end
end

defimpl Poison.Encoder, for: [Range, Stream, MapSet, HashSet] do
defimpl Poison.Encoder, for: [Stream, MapSet, HashSet] do
alias Poison.Encoder

use Poison.Pretty
Expand Down Expand Up @@ -372,8 +372,8 @@ end
defimpl Poison.Encoder, for: Range do
alias Poison.Encoder

def encode(range, _options) do
Encoder.Map.encode(%{first: range.first, last: range.last})
def encode(range, options) do
Encoder.Map.encode(%{first: range.first, last: range.last}, options)
end
end

Expand Down

0 comments on commit 5350d33

Please sign in to comment.