diff options
| author | Franck Cuny <franck@lumberjaph.net> | 2015-02-16 20:21:15 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@lumberjaph.net> | 2015-02-16 20:21:15 -0800 |
| commit | d535f0faf8fd05abd265caa9efbf0fab399acb53 (patch) | |
| tree | ce52072a494fa5a06054d7e1551248150b43a9b2 /lib/Net/HTTP/API/Role/Format.pm | |
| parent | Add __END__ section to all the lib files. (diff) | |
| download | net-http-api-d535f0faf8fd05abd265caa9efbf0fab399acb53.tar.gz | |
Fix various deprecations.
enum are created with array ref, not array.
Class::MOP::load_class is replaced with Class::Load::load_class.
Diffstat (limited to 'lib/Net/HTTP/API/Role/Format.pm')
| -rw-r--r-- | lib/Net/HTTP/API/Role/Format.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Net/HTTP/API/Role/Format.pm b/lib/Net/HTTP/API/Role/Format.pm index 9cbd23a..6d32186 100644 --- a/lib/Net/HTTP/API/Role/Format.pm +++ b/lib/Net/HTTP/API/Role/Format.pm @@ -17,7 +17,7 @@ subtype Format => as 'Str' => where { grep {/^$format$/} keys %{content_type()}; }; -enum 'FormatMode' => qw(content-type append); +enum 'FormatMode' => [qw(content-type append)]; has api_format_options => ( is => 'rw', |
