Skip to content

Commit

Permalink
Consolidate experimental feature usage idiom
Browse files Browse the repository at this point in the history
`use experimental` instead of the two step
`use feature; no warnings` idiom
  • Loading branch information
shawnlaffan committed Sep 6, 2024
1 parent 3a3e28e commit 89efbf8
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 30 deletions.
5 changes: 1 addition & 4 deletions lib/Biodiverse/Common.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ use 5.036;
use strict;
use warnings;

use feature 'refaliasing';
no warnings 'experimental::refaliasing';

use experimental 'for_list';
use experimental qw/refaliasing for_list/;

use Carp;
use English ( -no_match_vars );
Expand Down
3 changes: 1 addition & 2 deletions lib/Biodiverse/Indices/Numeric_Labels.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ use strict;
use warnings;
use 5.022;

use feature 'refaliasing';
no warnings 'experimental::refaliasing';
use experimental 'refaliasing';

use List::Util qw /sum min max/;
#use List::MoreUtils qw /apply pairwise/;
Expand Down
5 changes: 1 addition & 4 deletions lib/Biodiverse/Indices/PhyloCom.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ use List::MoreUtils qw /any minmax pairwise/;
use Scalar::Util qw /blessed/;
use Sort::Key qw /nkeysort/;

use feature 'refaliasing';
no warnings 'experimental::refaliasing';

use experimental 'for_list';
use experimental qw/refaliasing for_list/;

our $VERSION = '4.99_002';

Expand Down
5 changes: 1 addition & 4 deletions lib/Biodiverse/Indices/Phylogenetic.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ use warnings;
use English qw /-no_match_vars/;
use Carp;

use feature 'refaliasing';
no warnings 'experimental::refaliasing';

use experimental 'for_list';
use experimental qw /refaliasing for_list/;

use Biodiverse::Progress;

Expand Down
5 changes: 1 addition & 4 deletions lib/Biodiverse/Indices/Phylogenetic/RefAlias.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ use Carp qw/croak/;

our $VERSION = '4.99_002';

use feature 'refaliasing';
no warnings 'experimental::refaliasing';

use experimental 'for_list';
use experimental qw/refaliasing for_list/;

use List::Util qw /sum/;

Expand Down
3 changes: 1 addition & 2 deletions lib/Biodiverse/Indices/PhylogeneticRelative/RefAlias.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ use warnings;

our $VERSION = '4.99_002';

use feature 'refaliasing';
no warnings 'experimental::refaliasing';
use experimental 'refaliasing';

sub _calc_phylo_rpe1_inner {
my ($self, %args) = @_;
Expand Down
3 changes: 1 addition & 2 deletions lib/Biodiverse/Indices/RWTurnover.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ use warnings;
#use autovivification;

use 5.022;
use feature 'refaliasing';
no warnings 'experimental::refaliasing';
use experimental 'refaliasing';

use Carp;
use List::Util qw /sum reduce/;
Expand Down
5 changes: 1 addition & 4 deletions lib/Biodiverse/Tree.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ use Sort::Key qw /keysort rnkeysort rikeysort/;
use Sort::Key::Natural qw /natkeysort/;
use POSIX qw /floor ceil/;

use feature 'refaliasing';
no warnings 'experimental::refaliasing';

use experimental 'for_list';
use experimental qw/refaliasing for_list/;

use English qw ( -no_match_vars );

Expand Down
5 changes: 1 addition & 4 deletions lib/Biodiverse/TreeNode.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ use strict;
use warnings;
no warnings 'recursion';

use feature 'refaliasing';
no warnings 'experimental::refaliasing';

use experimental 'for_list';
use experimental qw /refaliasing for_list/;

use English qw ( -no_match_vars );
use Ref::Util qw { :all };
Expand Down

0 comments on commit 89efbf8

Please sign in to comment.