Skip to content

Warning 'protocol has already been consolidated' when recompiling #5228

Closed
@beno

Description

@beno

When I add a protocol implementation such as the following, I run into a waring when recompiling:

defimpl Poison.Encoder, for: BSON.ObjectId do
  def encode(id, options) do
    BSON.ObjectId.encode!(id) |> Poison.Encoder.encode(options)
  end
end

produces on recompile

warning: the Poison.Encoder protocol has already been consolidated, an implementation for BSON.ObjectId has no effect

Using Elixir 1.3.2, for more info see elixir-mongo/mongodb#46 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions