Rename PATH_HASH_SIZE to DIGEST_SIZE. It's a digest, not hash (we don't necessarily have the internal hash state anymore), and the fact it's about (Nix)Paths is already visible from the module name. Also expose ENCODED_DIGEST_SIZE, so we don't need to do the calculation inside from_string() method, and it becomes more clear this is a constant. Change-Id: I0e7577dd7a6e503039037b986313b214e995d826 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7725 Reviewed-by: tazjin <tazjin@tvl.su> Reviewed-by: jrhahn <mail.jhahn@gmail.com> Tested-by: BuildkiteCI |
||
|---|---|---|
| .. | ||
| tests | ||
| dummy_blob_service.rs | ||
| dummy_directory_service.rs | ||
| dummy_path_info_service.rs | ||
| lib.rs | ||
| main.rs | ||
| nixbase32.rs | ||
| nixpath.rs | ||
| proto.rs | ||