From d2866034f35b15db2bb5c8520c8b632fb5b4c2d0 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 21 Mar 2020 17:26:13 +0000 Subject: remove compilation problems with newer perl+libs --- lib/WebService/TFL/Bus.pm | 2 +- lib/WebService/TFL/Bus/Response.pm | 2 +- lib/WebService/TFL/TubeStatus.pm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/WebService/TFL') diff --git a/lib/WebService/TFL/Bus.pm b/lib/WebService/TFL/Bus.pm index 6352a5d..3559755 100644 --- a/lib/WebService/TFL/Bus.pm +++ b/lib/WebService/TFL/Bus.pm @@ -2,7 +2,7 @@ package WebService::TFL::Bus; use Moo; use namespace::autoclean; use Types::URI 'Uri'; -use Type::Utils -all; +use Type::Utils 'duck_type'; use WebService::TFL::Bus::Response; has user_agent => ( diff --git a/lib/WebService/TFL/Bus/Response.pm b/lib/WebService/TFL/Bus/Response.pm index 4251228..e05d49d 100644 --- a/lib/WebService/TFL/Bus/Response.pm +++ b/lib/WebService/TFL/Bus/Response.pm @@ -1,7 +1,7 @@ package WebService::TFL::Bus::Response; use Moo; use Class::Load 'load_class'; -use Type::Utils -all; +use Type::Utils 'class_type'; use Types::Standard -all; use JSON; use namespace::autoclean; diff --git a/lib/WebService/TFL/TubeStatus.pm b/lib/WebService/TFL/TubeStatus.pm index 3b69997..b0ba260 100644 --- a/lib/WebService/TFL/TubeStatus.pm +++ b/lib/WebService/TFL/TubeStatus.pm @@ -1,6 +1,6 @@ package WebService::TFL::TubeStatus; use Moo; -use Type::Utils -all; +use Type::Utils 'duck_type'; use Types::URI 'Uri'; use XML::LibXML; use XML::LibXML::XPathContext; -- cgit v1.2.3