We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98d4460 commit 905e8e5Copy full SHA for 905e8e5
2 files changed
lib/mint/http_error.ex
@@ -53,9 +53,8 @@ defmodule Mint.HTTPError do
53
| {:unexpected_status, non_neg_integer()}
54
| {:unexpected_trailing_responses, list()}}
55
56
- @type t() :: %__MODULE__{
57
- reason: HTTP1.error_reason() | HTTP2.error_reason() | proxy_reason() | term()
58
- }
+ @type reason :: HTTP1.error_reason() | HTTP2.error_reason() | proxy_reason() | term()
+ @type t() :: %__MODULE__{reason: reason()}
59
60
defexception [:reason, :module]
61
lib/mint/transport_error.ex
@@ -55,7 +55,8 @@ defmodule Mint.TransportError do
reason_type
end
- @type t() :: %__MODULE__{reason: unquote(reason_type) | term()}
+ @type reason :: unquote(reason_type) | term()
defexception [:reason]
62
0 commit comments