]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchidx: use v5.10.1, parent.pm, drop warnings
authorEric Wong <e@yhbt.net>
Fri, 17 Jul 2020 06:31:54 +0000 (06:31 +0000)
committerEric Wong <e@yhbt.net>
Fri, 17 Jul 2020 20:56:53 +0000 (20:56 +0000)
Prefer "parent" to "base" since the former is lighter and part
of Perl 5.10+.  We'll also rely on warnings from "-w" globally
(or not) instead of via "use".

lib/PublicInbox/SearchIdx.pm

index c93c9034e9df31d557e516a0199e020264dcdd9c..9550847b784c42d96da03e44688c377d20c1be71 100644 (file)
@@ -8,8 +8,8 @@
 # This writes to the search index.
 package PublicInbox::SearchIdx;
 use strict;
-use warnings;
-use base qw(PublicInbox::Search PublicInbox::Lock);
+use v5.10.1;
+use parent qw(PublicInbox::Search PublicInbox::Lock);
 use PublicInbox::Eml;
 use PublicInbox::InboxWritable;
 use PublicInbox::MID qw/mid_clean mid_mime mids_for_index/;