use Devel::GlobalDestruction qw(in_global_destruction);
use MRO::Compat;
-use Scalar::Util;
+use Scalar::Util qw( blessed );
use Try::Tiny;
use if ( not our $__mx_is_compiled ), 'Moose::Meta::Class';
my $class = shift;
Carp::cluck 'Calling new() on an instance is deprecated,'
- . ' please use (blessed $obj)->new' if blessed $class;
+ . ' please use (blessed $obj)->new' if blessed($class);
my $params = $class->BUILDARGS(@_);
- my $real_class = Scalar::Util::blessed($class) || $class;
+ my $real_class = blessed($class) || $class;
my $self = Class::MOP::Class->initialize($real_class)->new_object($params);
$self->BUILDALL($params);