Skip to content

Commit 6a9525e

Browse files
authored
Fix Elixir 1.20 warnings (#9)
1 parent 947b72e commit 6a9525e

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ on:
99
jobs:
1010
test:
1111
name: Test (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}})
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-24.04
1313
strategy:
1414
fail-fast: false
1515
matrix:
1616
include:
17-
- otp: '25'
17+
- otp: "29.0.1"
1818
elixir: main
1919
lint: true
2020
env:
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
otp-version: ${{ matrix.otp }}
3232
elixir-version: ${{ matrix.elixir }}
33-
version-type: 'strict'
33+
version-type: "strict"
3434

3535
- name: Install dependencies
3636
run: mix do deps.get --only test, deps.compile

lib/logger_backends/watcher.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
defmodule LoggerBackends.Watcher do
22
@moduledoc false
33

4-
require Logger
54
use GenServer
65

76
def start_link(tuple) do

mix.exs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ defmodule LoggerBackends.MixProject do
1212
start_permanent: Mix.env() == :prod,
1313
deps: deps(),
1414
docs: docs(),
15-
preferred_cli_env: [docs: :docs, "hex.publish": :docs],
1615

1716
# Hex
1817
description: "Logger backends functionality for Elixir v1.15+",
@@ -31,6 +30,10 @@ defmodule LoggerBackends.MixProject do
3130
]
3231
end
3332

33+
def cli do
34+
[preferred_envs: [docs: :docs, "hex.publish": :docs]]
35+
end
36+
3437
defp docs do
3538
[
3639
main: "LoggerBackends",

0 commit comments

Comments
 (0)