about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-01-02T11·28+0100
committerflokli <flokli@flokli.de>2023-01-03T13·03+0000
commit2df642231cfa2ea59869a5112201e3f38cfeb271 (patch)
tree7ed55f33a64e36148d97e6e505b38d0453152aa0 /tvix
parent0b56d9f21bb5a857ee17ecc539c173926441a3fb (diff)
feat(tvix/store/nixpath): expose digest and name fields r/5571
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>
Diffstat (limited to 'tvix')
-rw-r--r--tvix/store/src/nixpath.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/store/src/nixpath.rs b/tvix/store/src/nixpath.rs
index 44350803ea..b619126868 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 {