diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-07-30 11:43:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-30 11:43:03 -0400 |
commit | ef5653be9823065e14189e412b52296bc4aeecb9 (patch) | |
tree | 2d5dd88b4d71fbe45cdd7587430c657050f52977 /cli/cache | |
parent | 20a89d46c4af091f30daf0df20b12c91962f9b14 (diff) |
refactor: reuse `FastInsecureHasher` in `get_check_hash` (#15354)
Diffstat (limited to 'cli/cache')
-rw-r--r-- | cli/cache/common.rs | 5 |
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 |