Skip to content

Commit d8d7b6c

Browse files
authored
fix: Compilation warnings on Elixir 1.20 (#175)
Updates dependencies and moves the `Phoenix.Component` usage out of the html helpers to ensure clean compilation on Elixir 1.20.
1 parent b866592 commit d8d7b6c

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

lib/error_tracker/web.ex

Lines changed: 2 additions & 2 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,8 +106,6 @@ 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

0 commit comments

Comments
 (0)