diff options
author | edef <edef@edef.eu> | 2023-10-27T12·02+0000 |
---|---|---|
committer | edef <edef@edef.eu> | 2023-10-27T13·56+0000 |
commit | b994f692d3c02a858eacfece9e6a7d6990f46539 (patch) | |
tree | 60bc8d47749a6845cd481f41f170404f33d2c0d6 /tvix/nix-compat/src/store_path/utils.rs | |
parent | 6238a05868c8597183023e34cb7f47e9d64270eb (diff) |
feat(nix-compat/store_path): validate_name over borrowed data r/6890
Change-Id: Ifeb6231f48d4ad267a7acd398b4b3b687ee4d560 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9857 Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/nix-compat/src/store_path/utils.rs')
-rw-r--r-- | tvix/nix-compat/src/store_path/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/nix-compat/src/store_path/utils.rs b/tvix/nix-compat/src/store_path/utils.rs index 31964bc6b1ff..94e9f106d9d5 100644 --- a/tvix/nix-compat/src/store_path/utils.rs +++ b/tvix/nix-compat/src/store_path/utils.rs @@ -167,7 +167,7 @@ fn build_store_path_from_fingerprint_parts<B: AsRef<[u8]>>( name: B, ) -> Result<StorePath, Error> { let name = name.as_ref(); - let name = super::validate_name(name.as_ref())?; + let name = super::validate_name(name.as_ref())?.to_owned(); let digest = compress_hash(&{ let mut h = Sha256::new(); |