diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-09-07 15:06:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 15:06:18 -0400 |
commit | 9e6917426a2c6862a15aa27fd9f26b07c96ca14d (patch) | |
tree | a80b49eb0c9e414aafc60b23973dc420be07aa23 /cli/cache/common.rs | |
parent | 429759fe8b4207240709c240a8344d12a1e39566 (diff) |
fix: upgrade deno_ast to 0.19 (#15808)
Diffstat (limited to 'cli/cache/common.rs')
-rw-r--r-- | cli/cache/common.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/cache/common.rs b/cli/cache/common.rs index d1578ce8d..94fe383a5 100644 --- a/cli/cache/common.rs +++ b/cli/cache/common.rs @@ -34,6 +34,14 @@ impl FastInsecureHasher { self } + pub fn write_hashable( + &mut self, + hashable: &impl std::hash::Hash, + ) -> &mut Self { + hashable.hash(&mut self.0); + self + } + pub fn finish(&self) -> u64 { self.0.finish() } |