about summary refs log tree commit diff
path: root/tvix/store/src/proto
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2023-10-27T11·35+0000
committeredef <edef@edef.eu>2023-10-27T13·56+0000
commit7f7c1ae7be97a54e8a52bda29e6d2c22f2efb822 (patch)
treec05a0fa85a32a1561c85c44e3ee51e561a60081a /tvix/store/src/proto
parent36f2b69de59ddd9f64c1f37c9ef1422661643245 (diff)
refactor(nix-compat/store_path): make digest and name private r/6888
Change-Id: I62cbe883afcf3dd0c8d4de0e3b845069eb750c97
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9855
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/store/src/proto')
-rw-r--r--tvix/store/src/proto/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/store/src/proto/mod.rs b/tvix/store/src/proto/mod.rs
index 4b5bf4f59479..fe942ac2663e 100644
--- a/tvix/store/src/proto/mod.rs
+++ b/tvix/store/src/proto/mod.rs
@@ -130,12 +130,12 @@ impl PathInfo {
                     // This is safe, because we ensured the proper length earlier already.
                     let reference_digest = self.references[i].to_vec().try_into().unwrap();
 
-                    if reference_names_store_path.digest != reference_digest {
+                    if reference_names_store_path.digest() != &reference_digest {
                         return Err(
                             ValidatePathInfoError::InconsistentNarinfoReferenceNameDigest(
                                 i,
                                 reference_digest,
-                                reference_names_store_path.digest,
+                                *reference_names_store_path.digest(),
                             ),
                         );
                     }