feat(tvix/store/nixpath): expose digest and name fields

These can be accessed directly.

Change-Id: I71dc84f982820d53f319efefbed9b9055034954d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7724
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Florian Klink 2023-01-02 12:28:56 +01:00 committed by flokli
parent 0b56d9f21b
commit 2df642231c

View file

@ -18,8 +18,8 @@ pub enum ParseNixPathError {
#[derive(Debug, PartialEq, Eq)]
pub struct NixPath {
digest: [u8; PATH_HASH_SIZE],
name: String,
pub digest: [u8; PATH_HASH_SIZE],
pub name: String,
}
impl NixPath {