diff options
Diffstat (limited to 'tvix/nix-compat/src/derivation/validate.rs')
-rw-r--r-- | tvix/nix-compat/src/derivation/validate.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/nix-compat/src/derivation/validate.rs b/tvix/nix-compat/src/derivation/validate.rs index 91b24f811de4..d8dc24a92ae1 100644 --- a/tvix/nix-compat/src/derivation/validate.rs +++ b/tvix/nix-compat/src/derivation/validate.rs @@ -29,7 +29,7 @@ impl Derivation { // [StorePath] will fail the [StorePath::validate_name] check. if output_name.is_empty() || output_name == "drv" - || StorePath::validate_name(&output_name).is_err() + || StorePath::validate_name(output_name).is_err() { return Err(DerivationError::InvalidOutputName(output_name.to_string())); } @@ -86,7 +86,7 @@ impl Derivation { // [StorePath] will fail the [StorePath::validate_name] check. if output_name.is_empty() || output_name == "drv" - || StorePath::validate_name(&output_name).is_err() + || StorePath::validate_name(output_name).is_err() { return Err(DerivationError::InvalidInputDerivationOutputName( input_derivation_path.to_string(), |