From 65de5fb4658e92f0730901b8b083af375050bd64 Mon Sep 17 00:00:00 2001 From: Maxim <59533214+biryukovmaxim@users.noreply.github.com> Date: Fri, 11 Feb 2022 22:04:31 +0300 Subject: refactor: use `Arc` instead of making copies of `Flags` struct (#13610) --- cli/lsp/cache.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/lsp') diff --git a/cli/lsp/cache.rs b/cli/lsp/cache.rs index d174907d5..8b2c85dec 100644 --- a/cli/lsp/cache.rs +++ b/cli/lsp/cache.rs @@ -50,13 +50,13 @@ impl CacheServer { let _join_handle = thread::spawn(move || { let runtime = create_basic_runtime(); runtime.block_on(async { - let ps = ProcState::build(Flags { + let ps = ProcState::build(Arc::new(Flags { cache_path: maybe_cache_path, ca_stores: maybe_ca_stores, ca_file: maybe_ca_file, unsafely_ignore_certificate_errors, ..Default::default() - }) + })) .await .unwrap(); let maybe_import_map_resolver = -- cgit v1.2.3