Skip to content

Commit

Permalink
Resolve Dialyzer errors on Elixir 1.16
Browse files Browse the repository at this point in the history
closes #642
  • Loading branch information
nathany-copia committed Dec 27, 2023
1 parent 6388e3c commit c6ea3cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/tesla/multipart.ex
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ defmodule Tesla.Multipart do
false -> headers
end

data = File.stream!(path, [], 2048)
data = File.stream!(path, 2048)
add_file_content(mp, data, filename, opts ++ [headers: headers])
end

Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ defmodule Tesla.Mixfile do
version: @version,
description: description(),
package: package(),
elixir: "~> 1.10",
elixir: "~> 1.16",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
lockfile: lockfile(System.get_env("LOCKFILE")),
test_coverage: [tool: ExCoveralls],
dialyzer: [
plt_core_path: "_build/#{Mix.env()}",
plt_add_apps: [:mix, :inets, :idna, :ssl_verify_fun, :ex_unit],
plt_add_deps: :project
plt_add_deps: :apps_direct
],
docs: docs(),
preferred_cli_env: [coveralls: :test, "coveralls.html": :test]
Expand Down

0 comments on commit c6ea3cb

Please sign in to comment.