Skip to content

Commit

Permalink
mix format
Browse files Browse the repository at this point in the history
  • Loading branch information
edgurgel committed Jun 21, 2024
1 parent 6c1d4a0 commit ca14511
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/mimic/cover.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule Mimic.Cover do
{_, binary, _} = :code.get_object_code(:cover)
{:ok, {_, [{_, {_, abstract_code}}]}} = :beam_lib.chunks(binary, [:abstract_code])
{:ok, module, binary} = :compile.forms(abstract_code, [:export_all])
{:module, :cover} = :code.load_binary(module, '', binary)
{:module, :cover} = :code.load_binary(module, ~c"", binary)
end

:ok
Expand Down
2 changes: 1 addition & 1 deletion lib/mimic/module.ex
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ defmodule Mimic.Module do
end

defp load_binary(module, binary, enable_cover?) do
case :code.load_binary(module, '', binary) do
case :code.load_binary(module, ~c"", binary) do
{:module, ^module} -> :ok
{:error, reason} -> exit({:error_loading_module, module, reason})
end
Expand Down

0 comments on commit ca14511

Please sign in to comment.