refactor(tvix/derivation): don't create deref'd immediately ref
clippy says: > This expression creates a reference which is immediately dereferenced > by the compiler Change-Id: Ic2c093b043ebee9ae80912075083107e4d216cf1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7995 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
ce4d87b129
commit
361ffd7903
2 changed files with 3 additions and 3 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue