From 1560dccbd2bb34b1608f1b825dfd3082605192c0 Mon Sep 17 00:00:00 2001 From: Andrea Leopardi Date: Tue, 25 Jul 2023 07:44:16 +0200 Subject: [PATCH] Remove opaque Corsica.sanitized_options/0 type --- lib/corsica.ex | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/corsica.ex b/lib/corsica.ex index 84bd9b6..caecee6 100644 --- a/lib/corsica.ex +++ b/lib/corsica.ex @@ -294,17 +294,13 @@ defmodule Corsica do @typedoc since: "2.0.0" @type origin() :: String.t() | Regex.t() | {module(), function :: atom(), args :: [term()]} - @typedoc """ - Sanitized options, internal to Corsica. - """ - @typedoc since: "2.1.0" - @opaque sanitized_options() :: %Options{} - @typedoc """ Options accepted by most functions as well as the `Corsica` plug. + + The `%Options{}` struct is internal to Corsica and is used for performance. """ @typedoc since: "2.1.0" - @type options() :: keyword() | sanitized_options() + @type options() :: keyword() | %Options{} @simple_methods ~w(GET HEAD POST) @simple_headers ~w(accept accept-language content-language)