Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve Dialyzer errors on Elixir 1.16 #643

Merged
merged 17 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
nathany-copia marked this conversation as resolved.
Show resolved Hide resolved
data = File.stream!(path, 2048)
yordis marked this conversation as resolved.
Show resolved Hide resolved
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",
yordis marked this conversation as resolved.
Show resolved Hide resolved
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
yordis marked this conversation as resolved.
Show resolved Hide resolved
plt_add_deps: :apps_direct
],
docs: docs(),
preferred_cli_env: [coveralls: :test, "coveralls.html": :test]
Expand Down