From 2df642231cfa2ea59869a5112201e3f38cfeb271 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 2 Jan 2023 12:28:56 +0100 Subject: 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 --- tvix/store/src/nixpath.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tvix/store/src/nixpath.rs') diff --git a/tvix/store/src/nixpath.rs b/tvix/store/src/nixpath.rs index 44350803eafa..b619126868d5 100644 --- a/tvix/store/src/nixpath.rs +++ b/tvix/store/src/nixpath.rs @@ -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 { -- cgit 1.4.1