modernize Moose usage
[gitmo/MooseX-StrictConstructor.git] / lib / MooseX / StrictConstructor / Trait / Method / Constructor.pm
index 8c36810..3c228b0 100644 (file)
@@ -1,13 +1,12 @@
 package MooseX::StrictConstructor::Trait::Method::Constructor;
 
-use strict;
-use warnings;
+use Moose::Role;
+
+use namespace::autoclean;
 
 use B ();
 use Carp ();
 
-use Moose::Role;
-
 around '_generate_BUILDALL' => sub {
     my $orig = shift;
     my $self = shift;
@@ -35,8 +34,6 @@ EOF
     return $source;
 };
 
-no Moose::Role;
-
 1;
 
 # ABSTRACT: A role to make immutable constructors strict