From 896dd56b7af06fea6604a5596a6ffd17e7e52e6e Mon Sep 17 00:00:00 2001 From: Yiyu Lin Date: Fri, 6 Jan 2023 03:29:50 +0800 Subject: refactor(cli,core,ext,rt): remove some unnecessary `clone` or `malloc` (#17274) --- cli/graph_util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/graph_util.rs') diff --git a/cli/graph_util.rs b/cli/graph_util.rs index 62db0a82c..d815e3311 100644 --- a/cli/graph_util.rs +++ b/cli/graph_util.rs @@ -571,7 +571,7 @@ pub async fn create_graph_and_maybe_check( &graph.roots, Arc::new(RwLock::new(graph_data)), &cache, - ps.npm_resolver.clone(), + &ps.npm_resolver, check::CheckOptions { type_check_mode: ps.options.type_check_mode(), debug: ps.options.log_level() == Some(log::Level::Debug), -- cgit v1.2.3