make native trait inlining work
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Bool / unset.pm
index a9d64fb..8b5d0ef 100644 (file)
@@ -13,7 +13,7 @@ with 'Moose::Meta::Method::Accessor::Native::Writer' => {
     -excludes => [
         qw(
             _maximum_arguments
-            _inline_optimized_set_new_value
+            _optimized_set_new_value
             )
     ]
 };
@@ -22,10 +22,11 @@ sub _maximum_arguments { 0 }
 
 sub _potential_value { 0 }
 
-sub _inline_optimized_set_new_value {
-    my ( $self, $inv, $new, $slot_access ) = @_;
+sub _optimized_set_new_value {
+    my $self = shift;
+    my ($inv, $new, $slot_access) = @_;
 
-    return "$slot_access = 0";
+    return $slot_access . ' = 0';
 }
 
 no Moose::Role;