summaryrefslogtreecommitdiff
path: root/cli/cache/node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/cache/node.rs')
-rw-r--r--cli/cache/node.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/cli/cache/node.rs b/cli/cache/node.rs
index 298d81e2f..825bdfef4 100644
--- a/cli/cache/node.rs
+++ b/cli/cache/node.rs
@@ -49,10 +49,7 @@ impl NodeAnalysisCache {
}
pub fn compute_source_hash(text: &str) -> String {
- FastInsecureHasher::new()
- .write_str(text)
- .finish()
- .to_string()
+ FastInsecureHasher::hash(text).to_string()
}
fn ensure_ok<T: Default>(res: Result<T, AnyError>) -> T {