about summary refs log tree commit diff
path: root/tvix/nix-compat/src/store_path/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/nix-compat/src/store_path/mod.rs')
-rw-r--r--tvix/nix-compat/src/store_path/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/nix-compat/src/store_path/mod.rs b/tvix/nix-compat/src/store_path/mod.rs
index 10bf1eb0266c..8a1b3a595a09 100644
--- a/tvix/nix-compat/src/store_path/mod.rs
+++ b/tvix/nix-compat/src/store_path/mod.rs
@@ -209,7 +209,7 @@ impl<'a> StorePathRef<'a> {
         }
 
         Ok(StorePathRef {
-            digest: digest.try_into().expect("size is known"),
+            digest,
             name: validate_name(&s[ENCODED_DIGEST_SIZE + 1..])?,
         })
     }