diff options
author | Florian Klink <flokli@flokli.de> | 2023-05-18T18·49+0300 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2023-05-18T19·29+0000 |
commit | dcbcac89559e128c70edbd39a6a5566386aee286 (patch) | |
tree | 4b31e8014d299e956a3a69a06da1eca5e3e337b4 /tvix/nix-compat/src/derivation | |
parent | 64ee21ec86b3b8b0d35256b823f0e6c9670a9acc (diff) |
refactor(tvix/nix-compat): clippy r/6161
Change-Id: Ie5277a5c15d9dfe543ca41fa7c6a1eedf22a9f64 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8593 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/nix-compat/src/derivation')
-rw-r--r-- | tvix/nix-compat/src/derivation/mod.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tvix/nix-compat/src/derivation/mod.rs b/tvix/nix-compat/src/derivation/mod.rs index f3a4cd6b04e4..ab1471165549 100644 --- a/tvix/nix-compat/src/derivation/mod.rs +++ b/tvix/nix-compat/src/derivation/mod.rs @@ -209,14 +209,12 @@ impl Derivation { |e| DerivationError::InvalidOutputDerivationPath(output_name.to_string(), e), )? } else { - build_output_path(derivation_or_fod_hash, &output_name, &path_name).map_err( - |e| { - DerivationError::InvalidOutputDerivationPath( - output_name.to_string(), - store_path::BuildStorePathError::InvalidName(e), - ) - }, - )? + build_output_path(derivation_or_fod_hash, output_name, &path_name).map_err(|e| { + DerivationError::InvalidOutputDerivationPath( + output_name.to_string(), + store_path::BuildStorePathError::InvalidName(e), + ) + })? }; output.path = abs_store_path.to_absolute_path(); |