diff --git a/tvix/nix-compat/src/store_path/mod.rs b/tvix/nix-compat/src/store_path/mod.rs index 10bf1eb02..8a1b3a595 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..])?, }) }