Skip to content

Commit 7c7604f

Browse files
committed
Fix compilation warnings on Elixir 1.20
1 parent b866592 commit 7c7604f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/error_tracker/web.ex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ defmodule ErrorTracker.Web do
7171
@doc false
7272
def html do
7373
quote do
74+
use Phoenix.Component
75+
7476
import Phoenix.Controller, only: [get_csrf_token: 0]
7577

7678
unquote(html_helpers())
@@ -104,13 +106,10 @@ defmodule ErrorTracker.Web do
104106

105107
defp html_helpers do
106108
quote do
107-
use Phoenix.Component
108-
109109
import ErrorTracker.Web.CoreComponents
110110
import ErrorTracker.Web.Helpers
111111
import ErrorTracker.Web.Router.Routes
112112
import Phoenix.HTML
113-
import Phoenix.LiveView.Helpers
114113

115114
alias Phoenix.LiveView.JS
116115
end

0 commit comments

Comments
 (0)