Skip to content

Commit c16c4b7

Browse files
committed
clarify use of Term::ANSIColor::color() in TAP::Formatter::Color
1 parent 4789cca commit c16c4b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/TAP/Formatter/Color.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ my $NO_COLOR;
1212
BEGIN {
1313
$NO_COLOR = 0;
1414

15-
eval 'use Term::ANSIColor';
15+
eval 'use Term::ANSIColor qw//';
1616
if ($@) {
1717
$NO_COLOR = $@;
1818
};
@@ -28,7 +28,7 @@ BEGIN {
2828
} else {
2929
*set_color = sub {
3030
my ( $self, $output, $color ) = @_;
31-
$output->( color($color) );
31+
$output->( Term::ANSIColor::color($color) );
3232
};
3333
}
3434
}

0 commit comments

Comments
 (0)