Skip to content

Commit ed78bd1

Browse files
authored
Fix deprecations with Elixir 1.14 (ananthakumaran#13)
* Fix deprecations with Elixir 1.14
1 parent c7abd07 commit ed78bd1

File tree

7 files changed

+10
-6
lines changed

7 files changed

+10
-6
lines changed

.github/workflows/ci.yml

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222
check_warnings: true
2323
check_format: true
2424
dialyzer: true
25+
- elixir: 1.14.0
26+
otp: 25.0
27+
check_warnings: true
28+
check_format: true
29+
dialyzer: true
2530
steps:
2631
- uses: actions/checkout@v2
2732
- uses: erlef/setup-elixir@v1

.tool-versions

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
elixir 1.11.0-otp-23
1+
elixir 1.11.4-otp-23
22
erlang 23.1

lib/zstream/encryption_coder/traditional.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule Zstream.EncryptionCoder.Traditional do
55

66
@behaviour Zstream.EncryptionCoder
77

8-
use Bitwise
8+
import Bitwise
99

1010
defmodule State do
1111
@moduledoc false

lib/zstream/protocol.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Zstream.Protocol do
22
@moduledoc false
33

4-
use Bitwise
4+
import Bitwise
55
alias Zstream.Zip.Extra
66

77
# Specification is available at

lib/zstream/unzip.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ defmodule Zstream.Unzip do
77
defexception [:message]
88
end
99

10-
use Bitwise
10+
import Bitwise
1111

1212
defmodule LocalHeader do
1313
@moduledoc false

lib/zstream/unzip/extra.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
defmodule Zstream.Unzip.Extra do
22
@moduledoc false
3-
use Bitwise
3+
import Bitwise
44

55
defmodule Unknown do
66
@type t :: %__MODULE__{

lib/zstream/zip/extra.ex

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
defmodule Zstream.Zip.Extra do
22
@moduledoc false
3-
use Bitwise
43

54
# -Zip64 Extended Information Extra Field (0x0001):
65

0 commit comments

Comments
 (0)