diff options
author | Maxim <59533214+biryukovmaxim@users.noreply.github.com> | 2022-02-11 22:04:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 14:04:31 -0500 |
commit | 65de5fb4658e92f0730901b8b083af375050bd64 (patch) | |
tree | f1b410613c31fcc6095e394ce59c10b447d01cab /cli/lsp/cache.rs | |
parent | 2fa0096821cd04334210fcae6f54f85d304dc17a (diff) |
refactor: use `Arc` instead of making copies of `Flags` struct (#13610)
Diffstat (limited to 'cli/lsp/cache.rs')
-rw-r--r-- | cli/lsp/cache.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 = |