We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3519c4d commit ab82264Copy full SHA for ab82264
lib/tesla/builder.ex
@@ -7,7 +7,8 @@ defmodule Tesla.Builder do
7
defmacro __using__(opts \\ []) do
8
caller_module = __CALLER__.module
9
10
- if not Application.get_env(:tesla, :disable_deprecated_builder_warning, false) do
+ if caller_module != Tesla and
11
+ not Application.get_env(:tesla, :disable_deprecated_builder_warning, false) do
12
IO.warn("""
13
`use Tesla.Builder` and `use Tesla` in #{inspect(caller_module)} are soft-deprecated. \
14
It will be removed in future major version in favor of
0 commit comments