Skip to content

Commit

Permalink
remove compiler warnings generated by 1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmarcon committed Mar 11, 2024
1 parent 5349ea6 commit f4a7c94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions lib/support/change_event_handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ defmodule LiveSelect.ChangeEventHandler do

alias LiveSelect.CityFinder

@callback handle(params :: %{String.t() => String.t()}, opts :: Keyword.t()) :: any()
defmodule Behaviour do
@moduledoc false

@behaviour __MODULE__
@callback handle(params :: %{String.t() => String.t()}, opts :: Keyword.t()) :: any()
end

@behaviour Behaviour

@impl true
def handle(%{"text" => text} = params, opts) do
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.exs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ExUnit.start()

Mox.defmock(LiveSelect.ChangeEventHandlerMock, for: LiveSelect.ChangeEventHandler)
Mox.defmock(LiveSelect.ChangeEventHandlerMock, for: LiveSelect.ChangeEventHandler.Behaviour)

0 comments on commit f4a7c94

Please sign in to comment.