X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FRole.pm;h=4910f72bf737aa7244cdebfb97931869c016be96;hp=73199c4a79cb8e2e186157d46b03fc5ec6270e37;hb=9c85e9dc1fea8af52dde98b81ad345eb44e79242;hpb=74be9f760d045a0174d76e54de1c66d6b66454c4 diff --git a/lib/Mouse/Meta/Role.pm b/lib/Mouse/Meta/Role.pm index 73199c4..4910f72 100644 --- a/lib/Mouse/Meta/Role.pm +++ b/lib/Mouse/Meta/Role.pm @@ -3,7 +3,6 @@ use strict; use warnings; use Carp 'confess'; -use Mouse::Meta::Attribute; use Mouse::Util qw(version authority identifier); do { @@ -51,7 +50,7 @@ sub add_attribute { my $self = shift; my $name = shift; my $spec = shift; - $self->{attributes}->{$name} = Mouse::Meta::Attribute->new($name, %$spec); + $self->{attributes}->{$name} = $spec; } sub has_attribute { exists $_[0]->{attributes}->{$_[1]} }