diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-07-10 17:45:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-10 21:45:09 +0000 |
commit | 8dd9d5f5239f9f842f7096a540f866bd4f10b72c (patch) | |
tree | 159ea977036a2ed76ce61d3ba2da9239a6f287a3 /cli/lsp/documents.rs | |
parent | 629d09b149ab42cc4c3cebc41e0f23112ace891c (diff) |
refactor(lsp): move config file related code to config.rs (#19790)
Will make #19788 easier.
Diffstat (limited to 'cli/lsp/documents.rs')
-rw-r--r-- | cli/lsp/documents.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/lsp/documents.rs b/cli/lsp/documents.rs index 11662a8fc..1ac5934ff 100644 --- a/cli/lsp/documents.rs +++ b/cli/lsp/documents.rs @@ -1192,7 +1192,7 @@ impl Documents { maybe_package_json_deps: Option<&PackageJsonDeps>, ) -> u64 { let mut hasher = FastInsecureHasher::default(); - hasher.write_hashable(&document_preload_limit); + hasher.write_hashable(document_preload_limit); hasher.write_hashable(&{ // ensure these are sorted so the hashing is deterministic let mut enabled_urls = enabled_urls.to_vec(); @@ -1203,7 +1203,7 @@ impl Documents { hasher.write_str(&import_map.to_json()); hasher.write_str(import_map.base_url().as_str()); } - hasher.write_hashable(&maybe_jsx_config); + hasher.write_hashable(maybe_jsx_config); if let Some(package_json_deps) = &maybe_package_json_deps { // We need to ensure the hashing is deterministic so explicitly type // this in order to catch if the type of package_json_deps ever changes |