summaryrefslogtreecommitdiff
path: root/cli/tools/check.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/check.rs')
-rw-r--r--cli/tools/check.rs10
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,