about summary refs log tree commit diff
path: root/tvix/store/src/nar/renderer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/store/src/nar/renderer.rs')
-rw-r--r--tvix/store/src/nar/renderer.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/tvix/store/src/nar/renderer.rs b/tvix/store/src/nar/renderer.rs
index 518854c09c45..e2119ae0796d 100644
--- a/tvix/store/src/nar/renderer.rs
+++ b/tvix/store/src/nar/renderer.rs
@@ -3,7 +3,6 @@ use crate::{
     blobservice::BlobService,
     directoryservice::DirectoryService,
     proto::{self, NamedNode},
-    B3Digest,
 };
 use count_write::CountWrite;
 use nix_compat::nar;
@@ -65,7 +64,7 @@ fn walk_node(
                 .map_err(RenderError::NARWriterError)?;
         }
         proto::node::Node::File(proto_file_node) => {
-            let digest = B3Digest::from_vec(proto_file_node.digest.clone()).map_err(|_e| {
+            let digest = proto_file_node.digest.clone().try_into().map_err(|_e| {
                 warn!(
                     file_node = ?proto_file_node,
                     "invalid digest length in file node",
@@ -96,8 +95,11 @@ fn walk_node(
                 .map_err(RenderError::NARWriterError)?;
         }
         proto::node::Node::Directory(proto_directory_node) => {
-            let digest =
-                B3Digest::from_vec(proto_directory_node.digest.to_vec()).map_err(|_e| {
+            let digest = proto_directory_node
+                .digest
+                .clone()
+                .try_into()
+                .map_err(|_e| {
                     RenderError::StoreError(crate::Error::StorageError(
                         "invalid digest len in directory node".to_string(),
                     ))