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/tools/check.rs | |
parent | 629d09b149ab42cc4c3cebc41e0f23112ace891c (diff) |
refactor(lsp): move config file related code to config.rs (#19790)
Will make #19788 easier.
Diffstat (limited to 'cli/tools/check.rs')
-rw-r--r-- | cli/tools/check.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cli/tools/check.rs b/cli/tools/check.rs index 4464802e6..99d891e5d 100644 --- a/cli/tools/check.rs +++ b/cli/tools/check.rs @@ -120,12 +120,10 @@ impl TypeChecker { // to make tsc build info work, we need to consistently hash modules, so that // tsc can better determine if an emit is still valid or not, so we provide // that data here. - let hash_data = { - let mut hasher = FastInsecureHasher::new(); - hasher.write(&ts_config.as_bytes()); - hasher.write_str(version::deno()); - hasher.finish() - }; + let hash_data = FastInsecureHasher::new() + .write(&ts_config.as_bytes()) + .write_str(version::deno()) + .finish(); let response = tsc::exec(tsc::Request { config: ts_config, |