summaryrefslogtreecommitdiff
path: root/cli/tsc/mod.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-07-10 17:45:09 -0400
committerGitHub <noreply@github.com>2023-07-10 21:45:09 +0000
commit8dd9d5f5239f9f842f7096a540f866bd4f10b72c (patch)
tree159ea977036a2ed76ce61d3ba2da9239a6f287a3 /cli/tsc/mod.rs
parent629d09b149ab42cc4c3cebc41e0f23112ace891c (diff)
refactor(lsp): move config file related code to config.rs (#19790)
Will make #19788 easier.
Diffstat (limited to 'cli/tsc/mod.rs')
-rw-r--r--cli/tsc/mod.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/cli/tsc/mod.rs b/cli/tsc/mod.rs
index a4d6640f7..52883a0b3 100644
--- a/cli/tsc/mod.rs
+++ b/cli/tsc/mod.rs
@@ -242,10 +242,11 @@ fn get_maybe_hash(
}
fn get_hash(source: &str, hash_data: u64) -> String {
- let mut hasher = FastInsecureHasher::new();
- hasher.write_str(source);
- hasher.write_u64(hash_data);
- hasher.finish().to_string()
+ FastInsecureHasher::new()
+ .write_str(source)
+ .write_u64(hash_data)
+ .finish()
+ .to_string()
}
/// Hash the URL so it can be sent to `tsc` in a supportable way