modernize Moose usage
[gitmo/MooseX-StrictConstructor.git] / lib / MooseX / StrictConstructor / Trait / Class.pm
index f3d2850..1bfb0f5 100644 (file)
@@ -1,13 +1,12 @@
 package MooseX::StrictConstructor::Trait::Class;
 
-use strict;
-use warnings;
+use Moose::Role;
+
+use namespace::autoclean;
 
 use B ();
 use Carp ();
 
-use Moose::Role;
-
 around '_inline_BUILDALL' => sub {
     my $orig = shift;
     my $self = shift;
@@ -31,8 +30,6 @@ around '_inline_BUILDALL' => sub {
     );
 };
 
-no Moose::Role;
-
 1;
 
 # ABSTRACT: A role to make immutable constructors strict