diff options
author | Eric Wong <e@80x24.org> | 2019-07-08 07:31:19 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-07-08 07:31:19 +0000 |
commit | b1b3e733968845cfd0d9669198dd605717152db4 (patch) | |
tree | 9ee396fc19634d1d5140b09d8e59286f05e16536 /lib/PublicInbox/NNTP.pm | |
parent | 3672f8765e3d4e15bc470dd18c6c8011dad296e0 (diff) | |
download | public-inbox-b1b3e733968845cfd0d9669198dd605717152db4.tar.gz |
http|nntp: "use PublicInbox::DS" instead of ->import
Relying on "use" to import during BEGIN means we get to take advantage of prototype checking of function args during the rest of the compilation phase.
Diffstat (limited to 'lib/PublicInbox/NNTP.pm')
-rw-r--r-- | lib/PublicInbox/NNTP.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm index 6fee29f4..6796a3c4 100644 --- a/lib/PublicInbox/NNTP.pm +++ b/lib/PublicInbox/NNTP.pm @@ -14,7 +14,7 @@ use PublicInbox::Git; require PublicInbox::EvCleanup; use Email::Simple; use POSIX qw(strftime); -PublicInbox::DS->import(qw(now)); +use PublicInbox::DS qw(now); use Digest::SHA qw(sha1_hex); use Time::Local qw(timegm timelocal); use constant { |