remove pointless "required" fields for attrs with defaults/builders
[p5sagit/Devel-REPL.git] / lib / Devel / REPL / Plugin / History.pm
index 9afa2be..2696e19 100644 (file)
@@ -1,16 +1,18 @@
 package Devel::REPL::Plugin::History;
 
 use Devel::REPL::Plugin;
-use namespace::clean -except => [ 'meta' ];
+use namespace::autoclean;
 
 has 'history' => (
-   isa => 'ArrayRef', is => 'rw', required => 1, lazy => 1,
+   isa => 'ArrayRef', is => 'rw',
+   lazy => 1,
    default => sub { [] }
 );
 
 # lazy so ReadLineHistory Plugin can set this
 has 'have_readline_history' => (
-   is => 'rw', required => 1, lazy => 1,
+   is => 'rw',
+   lazy => 1,
    default => sub { 0 }
 );