summaryrefslogtreecommitdiff
path: root/cli/cache/common.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-07-30 11:43:03 -0400
committerGitHub <noreply@github.com>2022-07-30 11:43:03 -0400
commitef5653be9823065e14189e412b52296bc4aeecb9 (patch)
tree2d5dd88b4d71fbe45cdd7587430c657050f52977 /cli/cache/common.rs
parent20a89d46c4af091f30daf0df20b12c91962f9b14 (diff)
refactor: reuse `FastInsecureHasher` in `get_check_hash` (#15354)
Diffstat (limited to 'cli/cache/common.rs')
-rw-r--r--cli/cache/common.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/cache/common.rs b/cli/cache/common.rs
index b536d6cb2..d1578ce8d 100644
--- a/cli/cache/common.rs
+++ b/cli/cache/common.rs
@@ -24,6 +24,11 @@ impl FastInsecureHasher {
self
}
+ pub fn write_u8(&mut self, value: u8) -> &mut Self {
+ self.0.write_u8(value);
+ self
+ }
+
pub fn write_u64(&mut self, value: u64) -> &mut Self {
self.0.write_u64(value);
self