From 8dd9d5f5239f9f842f7096a540f866bd4f10b72c Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 10 Jul 2023 17:45:09 -0400 Subject: refactor(lsp): move config file related code to config.rs (#19790) Will make #19788 easier. --- cli/tools/check.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'cli/tools') 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, -- cgit v1.2.3