From d535f0faf8fd05abd265caa9efbf0fab399acb53 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 16 Feb 2015 20:21:15 -0800 Subject: Fix various deprecations. enum are created with array ref, not array. Class::MOP::load_class is replaced with Class::Load::load_class. --- lib/Net/HTTP/API/Role/Format.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Net/HTTP/API/Role/Format.pm') 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', -- cgit v1.2.3