Skip to content

Commit

Permalink
Merge pull request #109 from k-asm/work/suppress-warnings
Browse files Browse the repository at this point in the history
Suppress warnings in elixir 1.17
  • Loading branch information
bernardd authored Jun 14, 2024
2 parents 11a3b87 + 474133d commit a5cb6b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ex_aws/dynamo/decoder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ defmodule ExAws.Dynamo.Decoder do

@doc "Converts a map with binary keys to the specified struct"
def binary_map_to_struct(bmap, module) do
module.__struct__
module.__struct__()
|> Map.from_struct()
|> Enum.reduce(%{}, fn {k, v}, map ->
Map.put(map, k, Map.get(bmap, Atom.to_string(k), v))
Expand Down
2 changes: 1 addition & 1 deletion test/support/ddb_local.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule DDBLocal do
if is_nil(port) do
{:error, "No value provided for :port in config/ddb_local_test.exs."}
else
case :gen_tcp.connect('localhost', port, []) do
case :gen_tcp.connect(~c"localhost", port, []) do
{:ok, _} -> :ok
{:error, error} -> {:error, error}
end
Expand Down

0 comments on commit a5cb6b4

Please sign in to comment.